mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Rename main to rust_main to support testing
On testing, `std` is imported, which defines an own `main` function. Thus `cargo test` fails if there alread exists one non-mangled main.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
; limitations under the License.
|
||||
|
||||
global long_mode_start
|
||||
extern main
|
||||
extern rust_main
|
||||
|
||||
section .text
|
||||
bits 64
|
||||
@@ -21,7 +21,7 @@ long_mode_start:
|
||||
call setup_SSE
|
||||
|
||||
; call rust main
|
||||
call main
|
||||
call rust_main
|
||||
.os_returned:
|
||||
; rust main returned, print `OS returned!`
|
||||
mov rax, 0x4f724f204f534f4f
|
||||
|
||||
Reference in New Issue
Block a user