Skip to contentSkip to conversation

Changes for port to ia64

MINIOS Dietmar Hahn 2 participants 4 messages Sep 22, 2006

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.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.

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
diff -r 6e3223a69461 -r 8374be07c622 extras/mini-os/include/x86/os.h
@@ -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

#2 lore raw
In reply to Dietmar Hahn
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.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
#3 lore raw

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 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

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
diff -r 6e3223a69461 -r c40c2d2618dd extras/mini-os/include/x86/os.h
@@ -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