summaryrefslogtreecommitdiff
path: root/boot/arch/amd64/mbr/mbr.S
diff options
context:
space:
mode:
Diffstat (limited to 'boot/arch/amd64/mbr/mbr.S')
-rw-r--r--boot/arch/amd64/mbr/mbr.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/arch/amd64/mbr/mbr.S b/boot/arch/amd64/mbr/mbr.S
index e071a41..236f9f1 100644
--- a/boot/arch/amd64/mbr/mbr.S
+++ b/boot/arch/amd64/mbr/mbr.S
@@ -1,7 +1,10 @@
+/* Segment constants */
+#define BOOT_SEG 0x7C0 /* Segment we reside on startup */
+
.code16
_start:
/* Normalize CS + other selectors */
- ljmp $0x00,$1f
+ ljmp $BOOT_SEG,$1f
1: xor %ax, %ax
mov %ax, %ds
mov %ax, %ss