Skip to contentSkip to conversation

subarch-cleanup_A1

RFC PATCH In review john stultz 3 participants 4 messages Nov 22, 2002

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 subarch-cleanup_A1

Ok, next pass. How about this: (complete patch bz'ed and attached)

arch/i386/Makefile +10 -7
diff -Nru a/arch/i386/Makefile b/arch/i386/Makefile
@@ -46,10 +46,13 @@
 
 CFLAGS += $(cflags-y)
 
-ifdef CONFIG_VISWS
-MACHINE	:= mach-visws
-else
-MACHINE	:= mach-generic
+#VISWS subarch support
+mflags-$(CONFIG_VISWS) := -Iinclude/asm-i386/mach-visws
+mcore-$(CONFIG_VISWS)  := mach-visws
+#generic subarch support
+mflags-y += -Iinclude/asm-i386/mach-generic
+ifndef mcore-y
+  mcore-y  := mach-generic
 endif
 
 HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
@@ -57,14 +60,14 @@
 libs-y 					+= arch/i386/lib/
 core-y					+= arch/i386/kernel/ \
 					   arch/i386/mm/ \
-					   arch/i386/$(MACHINE)/
+					   arch/i386/$(mcore-y)/
 drivers-$(CONFIG_MATH_EMULATION)	+= arch/i386/math-emu/
 drivers-$(CONFIG_PCI)			+= arch/i386/pci/
 # FIXME: is drivers- right ?
 drivers-$(CONFIG_OPROFILE)		+= arch/i386/oprofile/
 
-CFLAGS += -Iarch/i386/$(MACHINE)
-AFLAGS += -Iarch/i386/$(MACHINE)
+CFLAGS += $(mflags-y)
+AFLAGS += $(mflags-y)
 
 makeboot = $(call descend,arch/i386/boot,$(1))
 
arch/i386/kernel/apic.c +2 -1
diff -Nru a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c
@@ -31,7 +31,8 @@
 #include <asm/pgalloc.h>
 #include <asm/desc.h>
 #include <asm/arch_hooks.h>
-#include "mach_apic.h"
+
+#include <mach_apic.h>
 
 void __init apic_intr_init(void)
 {

yada yada...
-john

#1 lore raw
Quoted 1 line · john stultz

Ok, next pass. How about this: (complete patch bz'ed and attached)

Would you like me to send you a patch to do strong typing (== wrap in structs) on the various flavors of APIC ID's?

I'll do so overnight when west coast .us is most likely to sleep if so.

Bill

#2 lore raw
Quoted 7 lines · William Lee Irwin III
Quoted 1 line · john stultz

Ok, next pass. How about this: (complete patch bz'ed and attached)

Would you like me to send you a patch to do strong typing (== wrap in structs) on the various flavors of APIC ID's?

I'll do so overnight when west coast .us is most likely to sleep if so.

a bit out of context from this patch, but yea, I'd be interested in seeing it. although, unless your just itching to do it, how about waiting until after the numaq subarch stuff is cleaned up a bit more?

thanks
-john

#3 lore raw
In reply to john stultz
Quoted 1 line · john stultz

Ok, next pass. How about this: (complete patch bz'ed and attached)

For the -ac tree I created a seperate mach/default so we can distinguish "generic PC" from "default values"