Fix GDT and remove unused code from MBR
This commit is contained in:
+1
-1
@@ -245,7 +245,7 @@ gdt_data:
|
||||
.base_low: dw 0x0000
|
||||
.base_middle: db 0x00
|
||||
.access: db 10010010b ; present, ring 0, data, writable
|
||||
.flags: db 00000000b
|
||||
.flags: db 10000000b
|
||||
.base_high: db 0x00
|
||||
gdt_data_end:
|
||||
gdt_end:
|
||||
|
||||
-13
@@ -19,19 +19,6 @@ load_bootloader:
|
||||
|
||||
jmp 0x8000
|
||||
|
||||
times 446 - ($ - $$) db 0
|
||||
|
||||
partition_table:
|
||||
partition_1:
|
||||
.bootable: db 0x80
|
||||
.chs_start: db 0x20, 0x21, 0x00
|
||||
.type: db 0x06
|
||||
.chs_end: db 0xFF, 0xFF, 0xFF
|
||||
.lba_start: dd 0x00000800
|
||||
.lba_size dd 0x00005000
|
||||
partition_1_end:
|
||||
partition_table_end:
|
||||
|
||||
times 510 - ($ - $$) db 0
|
||||
|
||||
boot_signature:
|
||||
|
||||
Reference in New Issue
Block a user