From 23ec0f61a7a115753148e3688e81567867f65c70 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Tue, 4 Jun 2024 19:32:32 +0200 Subject: chore: add v2p and p2v conversion wrt. id mapping Also renamed a few symbols to avoid confusion. --- boot/startup-x86_64.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'boot') diff --git a/boot/startup-x86_64.s b/boot/startup-x86_64.s index b6b3b2e..5bba95f 100644 --- a/boot/startup-x86_64.s +++ b/boot/startup-x86_64.s @@ -31,8 +31,8 @@ MAX_MEM: equ 512 [GLOBAL mb_info_addr] ; functions from other parts of rustubs ; NOTE: this are all from 64bit code, so do not use them in 32bit assembly -[EXTERN ___BSS_PM_START__] -[EXTERN ___BSS_PM_END__] +[EXTERN ___BSS_START__] +[EXTERN ___BSS_END__] [EXTERN KERNEL_OFFSET] [EXTERN _entry] ; ============================================================================= @@ -170,8 +170,8 @@ fill_kvma2: jne fill_kvma2 ; done :-) ; clear BSS section for the rust code. - mov rdi, ___BSS_PM_START__ - mov rax, ___BSS_PM_END__ + mov rdi, ___BSS_START__ + mov rax, ___BSS_END__ clear_bss: ; clear the BSS section before going to rust code ; TODO speed this up by clearing 8 bytes at once. Alignment should be taken -- cgit v1.2.3-70-g09d2