From ee65b6acc553fab1e9f28e89bdd324be69e53450 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 21 Sep 2024 11:45:22 -0400 Subject: [PATCH] remove reallocation in mbr init also reenable interupts in the init block --- src/mbr/mbr.nasm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mbr/mbr.nasm b/src/mbr/mbr.nasm index 1bc1ea2..bb9475c 100755 --- a/src/mbr/mbr.nasm +++ b/src/mbr/mbr.nasm @@ -34,11 +34,7 @@ init: mov ss, ax ; Set Stack Segment to 0 mov sp, STACK_START - - mov ch, 0x01 ; 256 WORDs in MBR (512 bytes), 0x0100 in cx - mov si, 0x7C00 ; Current MBR Address (loaded here by BIOS) - mov di, MBR_ENTRY ; New MBR Address (our new relocation address) - rep movsw ; copy 512 bytes from 0x0000:7c00 to 0x0000:0600 + sti jmp 0:main nop @@ -49,7 +45,6 @@ init: %include "errors.inc" main: - sti mov [boot_drive], dl ; BIOS passes drive number in DL .check_disk: