From 459936de7a00dbfeb70fdce737332ab2a4574662 Mon Sep 17 00:00:00 2001 From: Eric-Paul Ickhorn Date: Sat, 17 Aug 2024 18:57:49 +0200 Subject: [PATCH] Call driver setup function in protected entry The driver manager's function for initializing all builtin drivers is now being called in the 'stage2_protected_entry'-function, a function that is called once the GDT is set up and calls all other functions to get the system to boot. --- i386/legacy-boot/src-asm/entry.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/i386/legacy-boot/src-asm/entry.asm b/i386/legacy-boot/src-asm/entry.asm index d47d83d..97de43b 100755 --- a/i386/legacy-boot/src-asm/entry.asm +++ b/i386/legacy-boot/src-asm/entry.asm @@ -54,6 +54,12 @@ stage_2_setup_entry: bits 32 stage2_protected_entry: + push ebp + mov ebp, esp + call setup_drivers + mov esp, ebp + pop ebp + cli hlt