From fc70ab53e4868c84cb56a5353c3ec2cc5cf827eb Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Mon, 27 May 2024 13:59:41 -0500 Subject: arch: i386: pass entry page directory to entry func Add a third argument to i386_entry. This argument is the bootstrap page directory. Pages can be temporarily mapped in during the initialization of the paging system. Signed-off-by: Danny Holman --- arch/i386/boot/boot.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/i386/boot/boot.s') diff --git a/arch/i386/boot/boot.s b/arch/i386/boot/boot.s index e443b08..6d6da7d 100644 --- a/arch/i386/boot/boot.s +++ b/arch/i386/boot/boot.s @@ -64,14 +64,13 @@ _start: .section .text -4: movl $0, boot_page_directory + 0 - - movl %cr3, %ecx +4: movl %cr3, %ecx movl %ecx, %cr3 movl $stack_top, %esp and $-16, %esp + pushl $boot_page_directory pushl %ebx pushl %eax call i386_entry -- cgit v1.2.3