Changes for port to ia64
Hi,
I try this patch for mini-os again in the hope of a answer.
(see http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00439.html)
to avoid lots of #ifdefs in extras/mini-os/kernel.c I would like to separate some code in kernel.c into another new file arch/x86/common.c and use a function like arch_init() to do some architecture specific initializations. I added a patch with my suggestions for the changes.
Signature · 4 lines
Dietmar Hahn Telephone: +49 (0) 89 636 40274 Fujitsu Siemens Computers Telefax: +49 (0) 89 636 40601 Otto-Hahn-Ring 6 Email: [email protected] 81739 München, Germany Internet: http://www.fujitsu-siemens.com
Am Freitag, 22. September 2006 10:40 schrieb Dietmar Hahn:
Quoted 10 lines
Hi,
I try this patch for mini-os again in the hope of a answer. (see
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00439.html)to avoid lots of #ifdefs in
extras/mini-os/kernel.cI would like to separate some code inkernel.cinto another new filearch/x86/common.cand use a function likearch_init()to do some architecture specific initializations. I added a patch with my suggestions for the changes.
Sorry, I pressed the send button to fast.
Now is the patch attached.
Thanks.
Dietmar.
# HG changeset patch
# User [email protected]
# Date 1158907802 -7200
# Node ID 8374be07c6226cac672a87f6e259b48ac5129f3b
# Parent 6e3223a6946142eab3fb14df8fde5c817c53a44b
Added a new file arc/x86/common.c and moved some x86 specific initialization stuff from kernel.c there. Two new functions are added to handles this.
extras/mini-os/include/x86/os.h +5 -0
@@ -60,6 +60,11 @@ extern shared_info_t *HYPERVISOR_shared_extern shared_info_t *HYPERVISOR_shared_info;void trap_init (void ); + +void arch_init (start_info_t *si); +void arch_print_info (void ); + +
extras/mini-os/kernel.c +3 -64
86 lines not on this page · raw message
extras/mini-os/arch/x86/common.c new file +108 -0
108 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines
Hi,
Hi there.
Sorry for a slow reply (I've been busy with other stuff over the last week).
The patch looks ok to me, but I think a better filename would be "setup.c" not "common.c". The fact that the file is in arch/x86 makes it quite obvious that it's common to all x86 subarchs.
Could you resent the patch (directly to Keir maybe).
Thanks
Gregor
Quoted 15 lines
I try this patch for mini-os again in the hope of a answer.
(see http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00439.html)to avoid lots of #ifdefs in
extras/mini-os/kernel.cI would like to separate some code inkernel.cinto another new filearch/x86/common.cand use a function likearch_init()to do some architecture specific initializations. I added a patch with my suggestions for the changes.Signature · 4 lines
Dietmar Hahn Telephone: +49 (0) 89 636 40274 Fujitsu Siemens Computers Telefax: +49 (0) 89 636 40601 Otto-Hahn-Ring 6 Email: [email protected] 81739 München, Germany Internet: http://www.fujitsu-siemens.com
Am Freitag, 22. September 2006 15:35 schrieben Sie:
Quoted 7 lines
Quoted 1 line
Hi,
Hi there.
Sorry for a slow reply (I've been busy with other stuff over the last week).
Quoted 9 lines
The patch looks ok to me, but I think a better filename would be "
setup.c" not "common.c". The fact that the file is inarch/x86makes it quite obvious that it's common to all x86 subarchs.Could you resent the patch (directly to Keir maybe).
Thanks
Gregor
Hi Keir,
like Gregor said I changed the filename from common.c to setup.c. Attached is the new patch.
Thanks.
Dietmar.
# HG changeset patch
# User [email protected]
# Date 1158935132 -7200
# Node ID c40c2d2618dd2194140a7a9ead9535d294aad27c
# Parent 6e3223a6946142eab3fb14df8fde5c817c53a44b
Added a new file arc/x86/setup.c and moved some x86 specific initialization stuff from kernel.c there. Two new functions are added to handles this.
extras/mini-os/include/x86/os.h +5 -0
@@ -60,6 +60,11 @@ extern shared_info_t *HYPERVISOR_shared_extern shared_info_t *HYPERVISOR_shared_info;void trap_init (void ); + +void arch_init (start_info_t *si); +void arch_print_info (void ); + +
extras/mini-os/kernel.c +3 -64
86 lines not on this page · raw message
extras/mini-os/arch/x86/setup.c new file +108 -0
108 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel