mini-os: handle start_info_t pointer
PATCH 1/1 mini-os: handle start_info_t pointer
Hi Gregor,
on ia64 the start_info_t pointer is stored within shared_info_t structure. So it makes sense to initialize the pointer within arch_init(), which is different from x86.
With this patch the &si is given to arch_init().
Please have a look!
Thanks.
Dietmar.
# HG changeset patch
# User [email protected]
# Date 1161939782 -7200
# Node ID ca87a5ceecff1b51c4f539c4d6b36d798eee5dd8
# Parent 5a98f2dcdc8651b9fe9313b62c5eefb8862a2585
In ia64 the start_info_t pointer is stored within shared_info_t structure. So it makes sense to initialize the pointer within arch_init(), which is different from x86.
Now the &si is given to arch_init() to realize this.
extras/mini-os/arch/x86/setup.c +2 -2
@@ -73,12 +73,12 @@ shared_info_t *map_shared_info(unsigned }void -arch_init (start_info_t *si) +arch_init (start_info_t **si) {/* Copy the start_info struct to a globally-accessible area. */ /* WARN: don't do printk before here, it uses information from shared_info. Use xprintk instead. */ -memcpy (&start_info, si,sizeof (*si)); +memcpy (&start_info, *si,sizeof (**si));/* set up minimal memory infos */ phys_to_machine_mapping = (unsigned long *)start_info.mfn_list;
extras/mini-os/include/x86/os.h +1 -1
@@ -61,7 +61,7 @@ extern shared_info_t *HYPERVISOR_shared_void trap_init (void ); -void arch_init (start_info_t *si); +void arch_init (start_info_t **si);void arch_print_info (void );
extras/mini-os/kernel.c +1 -1
@@ -84,7 +84,7 @@ void start_kernel(start_info_t *si) (void )HYPERVISOR_console_io (CONSOLEIO_write,strlen (hello), hello); -arch_init (si); +arch_init (&si);trap_init ();
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel