2005-07-17 Yoshinori Okuji <okuji@enbug.org>
* kern/i386/pc/startup.S (gate_a20_try_system_control_port_a): When turning off Gate A20, skip the check and return immediately, because this is not fatal usually.
This commit is contained in:
parent
ebedfd0003
commit
e293232b8e
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
|
* kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
|
||||||
|
When turning off Gate A20, skip the check and return immediately,
|
||||||
|
because this is not fatal usually.
|
||||||
|
|
||||||
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
* conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
|
* conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
|
||||||
|
|
|
@ -463,12 +463,17 @@ gate_a20_try_system_control_port_a:
|
||||||
jz 6f
|
jz 6f
|
||||||
orb $0x02, %al
|
orb $0x02, %al
|
||||||
6: outb $0x92
|
6: outb $0x92
|
||||||
|
|
||||||
|
/* When turning off Gate A20, do not check the state strictly,
|
||||||
|
because a failure is not fatal usually, and Gate A20 is always
|
||||||
|
on some modern machines. */
|
||||||
|
testb %dl, %dl
|
||||||
|
jz 7f
|
||||||
call gate_a20_check_state
|
call gate_a20_check_state
|
||||||
cmpb %al, %dl
|
cmpb %al, %dl
|
||||||
/* everything failed, so restart from the beginning */
|
/* everything failed, so restart from the beginning */
|
||||||
jnz gate_a20_try_bios
|
jnz gate_a20_try_bios
|
||||||
ret
|
7: ret
|
||||||
|
|
||||||
gate_a20_check_state:
|
gate_a20_check_state:
|
||||||
/* iterate the checking for a while */
|
/* iterate the checking for a while */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue