diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
commit | 44bc40e1489622234169786b0ad5a1f4a01e1090 (patch) | |
tree | cd247a6f130b8993e92ac62f76ced2b023491d09 /arch/x86/boot | |
parent | 02171b4a7c5b555d08c3321332e0c45776518276 (diff) | |
parent | ead91d4b8c3b1fb08a73aaa4a191230ecf717ee0 (diff) |
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform changes from Ingo Molnar:
"This tree includes assorted platform driver updates and a preparatory
series for a platform with custom DMA remapping semantics (sta2x11 I/O
hub)."
* 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/vsmp: Fix number of CPUs when vsmp is disabled
keyboard: Use BIOS Keyboard variable to set Numlock
x86/olpc/xo1/sci: Report RTC wakeup events
x86/olpc/xo1/sci: Produce wakeup events for buttons and switches
x86, platform: Initial support for sta2x11 I/O hub
x86: Introduce CONFIG_X86_DMA_REMAP
x86-32: Introduce CONFIG_X86_DEV_DMA_OPS
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/main.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c index 40358c8905be..cf6083d444f4 100644 --- a/arch/x86/boot/main.c +++ b/arch/x86/boot/main.c | |||
@@ -57,14 +57,20 @@ static void copy_boot_params(void) | |||
57 | } | 57 | } |
58 | 58 | ||
59 | /* | 59 | /* |
60 | * Set the keyboard repeat rate to maximum. Unclear why this | 60 | * Query the keyboard lock status as given by the BIOS, and |
61 | * set the keyboard repeat rate to maximum. Unclear why the latter | ||
61 | * is done here; this might be possible to kill off as stale code. | 62 | * is done here; this might be possible to kill off as stale code. |
62 | */ | 63 | */ |
63 | static void keyboard_set_repeat(void) | 64 | static void keyboard_init(void) |
64 | { | 65 | { |
65 | struct biosregs ireg; | 66 | struct biosregs ireg, oreg; |
66 | initregs(&ireg); | 67 | initregs(&ireg); |
67 | ireg.ax = 0x0305; | 68 | |
69 | ireg.ah = 0x02; /* Get keyboard status */ | ||
70 | intcall(0x16, &ireg, &oreg); | ||
71 | boot_params.kbd_status = oreg.al; | ||
72 | |||
73 | ireg.ax = 0x0305; /* Set keyboard repeat rate */ | ||
68 | intcall(0x16, &ireg, NULL); | 74 | intcall(0x16, &ireg, NULL); |
69 | } | 75 | } |
70 | 76 | ||
@@ -151,8 +157,8 @@ void main(void) | |||
151 | /* Detect memory layout */ | 157 | /* Detect memory layout */ |
152 | detect_memory(); | 158 | detect_memory(); |
153 | 159 | ||
154 | /* Set keyboard repeat rate (why?) */ | 160 | /* Set keyboard repeat rate (why?) and query the lock flags */ |
155 | keyboard_set_repeat(); | 161 | keyboard_init(); |
156 | 162 | ||
157 | /* Query MCA information */ | 163 | /* Query MCA information */ |
158 | query_mca(); | 164 | query_mca(); |