Booting Our Binary [OS] - The LearnixOS Book< #24
Replies: 3 comments 3 replies
-
|
In the spec JSON, you defines pointer width as strings but my cargo/rust expects an int. // ...
// The default int is 32-bit
"target-c-int-width": 32, // instead of "32"
// The default pointer is 32-bit
"target-pointer-width": 32, // instead of "32"
// ... |
Beta Was this translation helpful? Give feedback.
-
|
One minor correction. I the section 1.1 you use |
Beta Was this translation helpful? Give feedback.
-
|
Section "Building Our Target": My main.rs #![no_std]
#![no_main]
#[panic_handler]
fn panic_handler(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[unsafe(no_mangle)]
fn main() {} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ch01-02-booting-our-binary
https://www.learnix-os.com/ch01-02-booting-our-binary.html
Beta Was this translation helpful? Give feedback.
All reactions