diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-05 09:34:53 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-05 09:34:53 +0200 |
| commit | c245268812a63bae0610de9a416dc7de97edde07 (patch) | |
| tree | 1f3707e9d53fbf1d3265feb138d499a58b03cf69 /boot/disk_load_16.asm | |
| parent | b75c10c9d8c7405ba2f89724b485154d5201c404 (diff) | |
Moved kernel and reclaimed ACPI memory
finally our 2 stage bootloader also works with LBA loading via BIOS
Diffstat (limited to 'boot/disk_load_16.asm')
| -rw-r--r-- | boot/disk_load_16.asm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/boot/disk_load_16.asm b/boot/disk_load_16.asm index 764b80d..fe573ea 100644 --- a/boot/disk_load_16.asm +++ b/boot/disk_load_16.asm @@ -10,7 +10,7 @@ STR_ERROR: db "Disk Read Error",0 -STR_SPACE +STR_SPACE: db " ",0 STR_OK: @@ -41,12 +41,13 @@ disk_load_lba: pusha - mov bx,0x1000 ;target es:bx + mov bx,0x1800 ;target es:bx mov es,bx mov bx,0 next_sectors_lba: + jmp skip_debug_lba ;show es - target pusha mov bx,es @@ -59,6 +60,8 @@ disk_load_lba: popa ;-- + skip_debug_lba: + mov [lba_addr_sector],es mov ax,[LBA] mov [lba_first_sector],ax @@ -93,11 +96,11 @@ disk_load_chs: pusha - mov bx,0x1000 ;target es:bx + mov bx,0x1800 ;target es:bx mov es,bx mov bx,0 - next_sectors_chs + next_sectors_chs: jmp skip_debug pusha @@ -147,7 +150,7 @@ disk_load_chs: call print_nextline - skip_debug + skip_debug: mov ax,[LBA] @@ -225,7 +228,7 @@ lba_adr: dw 0x0000 ; target addr. offset lba_addr_sector: - dw 0x1000 ; target addr. sector + dw 0x1800 ; target addr. sector lba_first_sector: dw 10 ; first sector to read |
