]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: Add hardware_subarch ID for Moorestown
authorPan, Jacob jun <jacob.jun.pan@intel.com>
Fri, 28 Aug 2009 21:52:47 +0000 (14:52 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Aug 2009 09:09:40 +0000 (11:09 +0200)
x86 bootprotocol 2.07 has introduced hardware_subarch ID in the boot
parameters provided by FW. We use it to identify Moorestown platforms.

[ tglx: Cleanup and paravirt fix ]

Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/x86/boot.txt
arch/x86/include/asm/bootparam.h
arch/x86/kernel/head_32.S

index 8da3a795083fec448cb7e13831b0c10180ff0b6e..30b43e1b26979cee024aa7636e250520b8ba235f 100644 (file)
@@ -599,6 +599,7 @@ Protocol:   2.07+
   0x00000000   The default x86/PC environment
   0x00000001   lguest
   0x00000002   Xen
+  0x00000003   Moorestown MID
 
 Field name:    hardware_subarch_data
 Type:          write (subarch-dependent)
index 1724e8de317c59518daebdb305f75b23bb4fcaf6..283a9a1b3efd84fd03a923c54c5cb3065fdb8583 100644 (file)
@@ -109,4 +109,14 @@ struct boot_params {
        __u8  _pad9[276];                               /* 0xeec */
 } __attribute__((packed));
 
+enum {
+       X86_SUBARCH_PC = 0,
+       X86_SUBARCH_LGUEST,
+       X86_SUBARCH_XEN,
+       X86_SUBARCH_MRST,
+       X86_NR_SUBARCHS,
+};
+
+
+
 #endif /* _ASM_X86_BOOTPARAM_H */
index cc827ac9e8d35e71dcb702fd7748a79940642da2..304e3f3d747b79739244349b549462db4d6179a4 100644 (file)
@@ -157,6 +157,7 @@ subarch_entries:
        .long default_entry             /* normal x86/PC */
        .long lguest_entry              /* lguest hypervisor */
        .long xen_entry                 /* Xen hypervisor */
+       .long default_entry             /* Moorestown MID */
 num_subarch_entries = (. - subarch_entries) / 4
 .previous
 #endif /* CONFIG_PARAVIRT */