diff options
author | Danny Holman <dholman@gymli.org> | 2024-05-27 13:59:41 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-05-27 13:59:41 -0500 |
commit | fc70ab53e4868c84cb56a5353c3ec2cc5cf827eb (patch) | |
tree | 9f16a0c00dc244e303588df6833b311c59275a37 /arch/i386/boot | |
parent | 61760f9301427ea56a62ec02af3d0d8ae4745be7 (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'arch/i386/boot')
-rw-r--r-- | arch/i386/boot/boot.s | 5 |
1 files changed, 2 insertions, 3 deletions
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 |