From 74d0e8c1f9527054a012aa9937c590537f9d3d5b Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Fri, 20 May 2022 10:33:27 +0200 Subject: bios.call: clean and avoid hardcoding the gdt and idt when returning to long mode Do not make assumptions on the previous gdt and idt, as well as the state of the flags when operating. --- bios/bios.ha | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bios/bios.ha') diff --git a/bios/bios.ha b/bios/bios.ha index afae0f6..aa69f8a 100644 --- a/bios/bios.ha +++ b/bios/bios.ha @@ -7,11 +7,7 @@ export type state = struct { @offset(12) edx: u32, @offset(16) edi: u32, @offset(20) esi: u32, - @offset(24) ds: u16, - @offset(26) es: u16, - @offset(28) ss: u16, - @offset(30) gs: u16, - @offset(32) fs: u16 + @offset(24) es: u16, }; // The set real mode registers -- cgit v1.2.3