Skip to content

Commit

Permalink
Usermode - Remove use of #[start] and remove a stable feature flag (f…
Browse files Browse the repository at this point in the history
…ixes #12)
  • Loading branch information
thepowersgang committed Jan 1, 2025
1 parent d4d558c commit 4c9fc49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Usermode/hello_world/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#![feature(start)]
#![no_std]
#![no_main]

extern crate syscalls;
extern crate std_rt;

#[start]
fn main(_: isize, _: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_: isize, _: *const *const u8) -> isize {
::syscalls::log_write("Hello World!");
0
}
Expand Down
1 change: 0 additions & 1 deletion Usermode/libstd_rt/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Standard Library - Runtime support (aka unwind and panic)
#![allow(internal_features)]
#![feature(lang_items)] // Allow definition of lang_items
#![feature(panic_info_message)]
#![cfg_attr(target_arch="arm", feature(extern_types))] // Used for ARM unwind
#![no_std]

Expand Down

0 comments on commit 4c9fc49

Please sign in to comment.