Skip to content

Commit

Permalink
Merge branch 'theseus_main' into std-shim
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoutsman committed Oct 31, 2023
2 parents 0d70f4c + bafc2e8 commit 9d92e09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/heap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ unsafe impl GlobalAlloc for Heap {
}

unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
if (ptr as usize) < INITIAL_HEAP_END_ADDR {
if KERNEL_HEAP_START <= (ptr as usize) && (ptr as usize) < INITIAL_HEAP_END_ADDR {
self.initial_allocator.lock().deallocate(ptr, layout);
}
else {
Expand Down
1 change: 1 addition & 0 deletions kernel/panic_entry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#![no_std]
#![feature(alloc_error_handler)]
#![allow(internal_features)]
#![feature(lang_items)]
#![feature(panic_info_message)]

Expand Down
1 change: 1 addition & 0 deletions kernel/thread_local_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#![no_std]
#![feature(thread_local)]
#![allow(internal_features)]
#![feature(allow_internal_unstable)]

// The code from Rust std uses unsafe blocks within unsafe functions,
Expand Down

0 comments on commit 9d92e09

Please sign in to comment.