|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/traps: export trapstr()
commit 429d839a1217a3f64dd158cc384daef523b4c06f
Author: Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Tue May 2 19:02:43 2017 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Tue May 30 18:50:13 2017 +0100
x86/traps: export trapstr()
It will be used in common and pv specific code. Export it in traps.h.
No functional change.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/traps.c | 2 +-
xen/include/asm-x86/traps.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index e66245a..cef9e59 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -544,7 +544,7 @@ static int nmi_show_execution_state(const struct
cpu_user_regs *regs, int cpu)
return 1;
}
-static const char *trapstr(unsigned int trapnr)
+const char *trapstr(unsigned int trapnr)
{
static const char * const strings[] = {
"divide error", "debug", "nmi", "bkpt", "overflow", "bounds",
diff --git a/xen/include/asm-x86/traps.h b/xen/include/asm-x86/traps.h
index e3884d8..f1d2513 100644
--- a/xen/include/asm-x86/traps.h
+++ b/xen/include/asm-x86/traps.h
@@ -51,4 +51,6 @@ uint32_t guest_io_read(unsigned int port, unsigned int bytes,
void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
struct domain *);
+const char *trapstr(unsigned int trapnr);
+
#endif /* ASM_TRAP_H */
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |