mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] x86: Pnp segments in segment h
Move PnP BIOS segment definitions into segment.h; the segments are reserved here, so they might as well be defined here as well. Note I didn't do this for APM BIOS, as Macintosh and other systems use those values to emulate APM in some scary way I don't want to understand. Signed-off-by: Zachary Amsden <[email protected]> Acked-by: "Seth, Rohit" <[email protected]> Cc: Stephen Rothwell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ff6e8c0d5e
commit
5702d0f742
2 changed files with 14 additions and 9 deletions
|
|
@ -31,15 +31,6 @@ static struct {
|
|||
} pnp_bios_callpoint;
|
||||
|
||||
|
||||
/* The PnP BIOS entries in the GDT */
|
||||
#define PNP_GDT (GDT_ENTRY_PNPBIOS_BASE * 8)
|
||||
|
||||
#define PNP_CS32 (PNP_GDT+0x00) /* segment for calling fn */
|
||||
#define PNP_CS16 (PNP_GDT+0x08) /* code segment for BIOS */
|
||||
#define PNP_DS (PNP_GDT+0x10) /* data segment for BIOS */
|
||||
#define PNP_TS1 (PNP_GDT+0x18) /* transfer data segment */
|
||||
#define PNP_TS2 (PNP_GDT+0x20) /* another data segment */
|
||||
|
||||
/*
|
||||
* These are some opcodes for a "static asmlinkage"
|
||||
* As this code is *not* executed inside the linux kernel segment, but in a
|
||||
|
|
|
|||
Loading…
Reference in a new issue