Commit 4bf3b0bc authored by H. Peter Anvin's avatar H. Peter Anvin

[x86 setup] Make struct apm_bios_info cross-architecture

struct apm_bios_info uses "unsigned short" and "unsigned long"
to mean u16 and u32 respectively.  Correct.
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 238b706d
...@@ -21,20 +21,22 @@ typedef unsigned short apm_eventinfo_t; ...@@ -21,20 +21,22 @@ typedef unsigned short apm_eventinfo_t;
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/types.h>
#define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8)
#define APM_CS_16 (APM_CS + 8) #define APM_CS_16 (APM_CS + 8)
#define APM_DS (APM_CS_16 + 8) #define APM_DS (APM_CS_16 + 8)
struct apm_bios_info { struct apm_bios_info {
unsigned short version; u16 version;
unsigned short cseg; u16 cseg;
unsigned long offset; u32 offset;
unsigned short cseg_16; u16 cseg_16;
unsigned short dseg; u16 dseg;
unsigned short flags; u16 flags;
unsigned short cseg_len; u16 cseg_len;
unsigned short cseg_16_len; u16 cseg_16_len;
unsigned short dseg_len; u16 dseg_len;
}; };
/* Results of APM Installation Check */ /* Results of APM Installation Check */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment