aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/xen/xencomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/xen/xencomm.c')
-rw-r--r--arch/ia64/xen/xencomm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/ia64/xen/xencomm.c b/arch/ia64/xen/xencomm.c
index 3dc307f0a40d..1f5d7ac82e97 100644
--- a/arch/ia64/xen/xencomm.c
+++ b/arch/ia64/xen/xencomm.c
@@ -19,11 +19,22 @@
19#include <linux/mm.h> 19#include <linux/mm.h>
20 20
21static unsigned long kernel_virtual_offset; 21static unsigned long kernel_virtual_offset;
22static int is_xencomm_initialized;
23
24/* for xen early printk. It uses console io hypercall which uses xencomm.
25 * However early printk may use it before xencomm initialization.
26 */
27int
28xencomm_is_initialized(void)
29{
30 return is_xencomm_initialized;
31}
22 32
23void 33void
24xencomm_initialize(void) 34xencomm_initialize(void)
25{ 35{
26 kernel_virtual_offset = KERNEL_START - ia64_tpa(KERNEL_START); 36 kernel_virtual_offset = KERNEL_START - ia64_tpa(KERNEL_START);
37 is_xencomm_initialized = 1;
27} 38}
28 39
29/* Translate virtual address to physical address. */ 40/* Translate virtual address to physical address. */