diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-06-04 19:32:32 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:17:12 +0200 |
| commit | 23ec0f61a7a115753148e3688e81567867f65c70 (patch) | |
| tree | b73e69bde0f887df1ea0885363c51a63d3ea8424 /boot | |
| parent | 6ddb7ff5e4edd749051fe624f018c33cf776c749 (diff) | |
chore: add v2p and p2v conversion wrt. id mapping
Also renamed a few symbols to avoid confusion.
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/startup-x86_64.s | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
