summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile2
-rw-r--r--src/stage2_functions.asm3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 1b77e89..34b1cb4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,7 +4,7 @@ LD := ld
NASMFLAGS := -f elf32
NASM := nasm
OBJCOPY := objcopy
-MAGIC = $(shell printf '%x' `date +%s`)
+MAGIC := $(shell printf '%x' `date +%s`)
all: image.bin kernel.sym
diff --git a/src/stage2_functions.asm b/src/stage2_functions.asm
index 208c2e4..37d8075 100644
--- a/src/stage2_functions.asm
+++ b/src/stage2_functions.asm
@@ -184,8 +184,7 @@ check_magic:
sub edx, MAGICLEN ; subtract the length of the magic string
mov esi, edx ; now use edx as first string address to compare to
mov edi, COMPARE_MAGIC ; position of second string
- mov ecx, MAGICLEN-2 ; length of the magic string, we can have a second
- ; (one digit) tolerance when comparing
+ mov ecx, MAGICLEN ; length of the magic string
repe cmpsb
jne .ok
jmp .mismatch