diff --git a/[refs] b/[refs] index 3f30fb79b4ff..991aaf476267 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4bf3b0bc3e98f77de88b336fd8d673649601b557 +refs/heads/master: 8d8d8289df65cb116d2721becafb37272074f25a diff --git a/trunk/arch/i386/boot/apm.c b/trunk/arch/i386/boot/apm.c index eab50c55a3a5..a34087c370c0 100644 --- a/trunk/arch/i386/boot/apm.c +++ b/trunk/arch/i386/boot/apm.c @@ -40,15 +40,14 @@ int query_apm_bios(void) if (bx != 0x504d) /* "PM" signature */ return -1; - if (!(cx & 0x02)) /* 32 bits supported? */ + if (cx & 0x02) /* 32 bits supported? */ return -1; /* Disconnect first, just in case */ ax = 0x5304; - bx = 0; asm volatile("pushl %%ebp ; int $0x15 ; popl %%ebp" - : "+a" (ax), "+b" (bx) - : : "ecx", "edx", "esi", "edi"); + : "+a" (ax) + : : "ebx", "ecx", "edx", "esi", "edi"); /* Paranoia */ ebx = esi = 0; diff --git a/trunk/arch/i386/boot/main.c b/trunk/arch/i386/boot/main.c index 0eeef3989a17..7f01f96c4fb8 100644 --- a/trunk/arch/i386/boot/main.c +++ b/trunk/arch/i386/boot/main.c @@ -73,15 +73,15 @@ static void keyboard_set_repeat(void) } /* - * Get Intel SpeedStep (IST) information. + * Get Intel SpeedStep IST information. */ -static void query_ist(void) +static void query_speedstep_ist(void) { asm("int $0x15" - : "=a" (boot_params.ist_info.signature), - "=b" (boot_params.ist_info.command), - "=c" (boot_params.ist_info.event), - "=d" (boot_params.ist_info.perf_level) + : "=a" (boot_params.speedstep_info[0]), + "=b" (boot_params.speedstep_info[1]), + "=c" (boot_params.speedstep_info[2]), + "=d" (boot_params.speedstep_info[3]) : "a" (0x0000e980), /* IST Support */ "d" (0x47534943)); /* Request value */ } @@ -144,8 +144,8 @@ void main(void) query_voyager(); #endif - /* Query Intel SpeedStep (IST) information */ - query_ist(); + /* Query SpeedStep IST information */ + query_speedstep_ist(); /* Query APM information */ #if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE) diff --git a/trunk/include/asm-i386/bootparam.h b/trunk/include/asm-i386/bootparam.h index b91b01783e4b..427d8652bfde 100644 --- a/trunk/include/asm-i386/bootparam.h +++ b/trunk/include/asm-i386/bootparam.h @@ -4,9 +4,8 @@ #include #include #include -#include #include -#include +#include #include