Parent Directory | Revision Log | Patch
revision 1.65 by okuji, Tue Dec 3 00:02:53 2002 UTC | revision 1.66 by okuji, Sat Dec 21 00:34:33 2002 UTC | |
---|---|---|
# | Line 1660 ENTRY(set_vbe_mode) | Line 1660 ENTRY(set_vbe_mode) |
1660 | */ | */ |
1661 | ||
1662 | ENTRY(gateA20) | ENTRY(gateA20) |
1663 | /* first, try a BIOS call */ | |
1664 | pushl %ebp | |
1665 | movl 8(%esp), %edx | |
1666 | ||
1667 | call EXT_C(prot_to_real) | |
1668 | ||
1669 | .code16 | |
1670 | movw $0x2400, %ax | |
1671 | testw %dx, %dx | |
1672 | jz 1f | |
1673 | incw %ax | |
1674 | 1: stc | |
1675 | int $0x15 | |
1676 | jnc 2f | |
1677 | ||
1678 | /* set non-zero if failed */ | |
1679 | movb $1, %ah | |
1680 | ||
1681 | /* save the status */ | |
1682 | 2: movb %ah, %dl | |
1683 | ||
1684 | DATA32 call EXT_C(real_to_prot) | |
1685 | .code32 | |
1686 | ||
1687 | popl %ebp | |
1688 | testb %dl, %dl | |
1689 | jnz 3f | |
1690 | ret | |
1691 | ||
1692 | 3: /* use keyboard controller */ | |
1693 | pushl %eax | pushl %eax |
1694 | ||
1695 | call gloop1 | call gloop1 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |