summaryrefslogtreecommitdiff
path: root/boot/arch/amd64/mbr
diff options
context:
space:
mode:
Diffstat (limited to 'boot/arch/amd64/mbr')
-rw-r--r--boot/arch/amd64/mbr/mbr.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot/arch/amd64/mbr/mbr.S b/boot/arch/amd64/mbr/mbr.S
index 5d876c2..3b56202 100644
--- a/boot/arch/amd64/mbr/mbr.S
+++ b/boot/arch/amd64/mbr/mbr.S
@@ -63,6 +63,12 @@ reloc:
add $40, %si
movw (%si), %ax
+ /* Set DS for stage 2 */
+ mov $BOOT_SEG<<4, %bx
+ or %ax, %bx
+ shr $4, %bx
+ mov %bx, %ds
+
/* Jump to stage 2 */
pushw $BOOT_SEG
pushw %ax