Rev 4429 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4429 | Rev 4434 | ||
---|---|---|---|
Line 1516... | Line 1516... | ||
1516 | out dx, al ; select GDC bit mask register |
1516 | out dx, al ; select GDC bit mask register |
1517 | ; for writes to 0x03cf |
1517 | ; for writes to 0x03cf |
1518 | gmok2: |
1518 | gmok2: |
1519 | push ds |
1519 | push ds |
1520 | pop es |
1520 | pop es |
- | 1521 | ||
- | 1522 | sidt [cs:old_ints_h] |
|
- | 1523 | ||
- | 1524 | cli ; disable all irqs |
|
- | 1525 | mov al, 255 ; mask all irqs |
|
- | 1526 | out 0xa1, al |
|
- | 1527 | out 0x21, al |
|
- | 1528 | l.5: |
|
- | 1529 | in al, 0x64 ; Enable A20 |
|
- | 1530 | test al, 2 |
|
- | 1531 | jnz l.5 |
|
- | 1532 | mov al, 0xD1 |
|
- | 1533 | out 0x64, al |
|
- | 1534 | l.6: |
|
- | 1535 | in al, 0x64 |
|
- | 1536 | test al, 2 |
|
- | 1537 | jnz l.6 |
|
- | 1538 | mov al, 0xDF |
|
- | 1539 | out 0x60, al |
|
- | 1540 | l.7: |
|
- | 1541 | in al, 0x64 |
|
- | 1542 | test al, 2 |
|
- | 1543 | jnz l.7 |
|
- | 1544 | mov al, 0xFF |
|
- | 1545 | out 0x64, al |
|
- | 1546 |