x86/traps: export trapstr()
authorWei Liu <wei.liu2@citrix.com>
Tue, 2 May 2017 18:02:43 +0000 (19:02 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 30 May 2017 17:50:13 +0000 (18:50 +0100)
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@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c
xen/include/asm-x86/traps.h

index e66245aa7c78c781f6376606e2d980dce06e45d1..cef9e59ff1dbf65ff42eb7fde5446883712fbeb7 100644 (file)
@@ -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",
index e3884d840663146d3627916a0f19b5ace62058b1..f1d2513e6bb914be639992688980df1322706c14 100644 (file)
@@ -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 */