Skip to content

Commit 162bc7a

Browse files
Pan, Jacob junKAGA-KOKO
authored andcommitted
x86: Add hardware_subarch ID for Moorestown
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>
1 parent 47a3d5d commit 162bc7a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Documentation/x86/boot.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ Protocol: 2.07+
599599
0x00000000 The default x86/PC environment
600600
0x00000001 lguest
601601
0x00000002 Xen
602+
0x00000003 Moorestown MID
602603

603604
Field name: hardware_subarch_data
604605
Type: write (subarch-dependent)

arch/x86/include/asm/bootparam.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,14 @@ struct boot_params {
109109
__u8 _pad9[276]; /* 0xeec */
110110
} __attribute__((packed));
111111

112+
enum {
113+
X86_SUBARCH_PC = 0,
114+
X86_SUBARCH_LGUEST,
115+
X86_SUBARCH_XEN,
116+
X86_SUBARCH_MRST,
117+
X86_NR_SUBARCHS,
118+
};
119+
120+
121+
112122
#endif /* _ASM_X86_BOOTPARAM_H */

arch/x86/kernel/head_32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ subarch_entries:
157157
.long default_entry /* normal x86/PC */
158158
.long lguest_entry /* lguest hypervisor */
159159
.long xen_entry /* Xen hypervisor */
160+
.long default_entry /* Moorestown MID */
160161
num_subarch_entries = (. - subarch_entries) / 4
161162
.previous
162163
#endif /* CONFIG_PARAVIRT */

0 commit comments

Comments
 (0)