Skip to content

Commit 365366d

Browse files
committed
stivale2: Stop wasting a whole page of stack space
1 parent fd9f134 commit 365366d

File tree

1 file changed

+1
-1
lines changed
  • src/aero_kernel/src/arch/x86_64

1 file changed

+1
-1
lines changed

src/aero_kernel/src/arch/x86_64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static PAGING_TAG: Stivale5LevelPagingHeaderTag = Stivale5LevelPagingHeaderTag::
7676
#[no_mangle]
7777
#[used]
7878
static STIVALE_HDR: StivaleHeader = StivaleHeader::new()
79-
.stack(&STACK.0[STACK_SIZE - 4096] as *const u8)
79+
.stack(STACK.0.as_ptr_range().end)
8080
.tags((&FRAMEBUFFER_TAG as *const StivaleFramebufferHeaderTag).cast());
8181

8282
#[no_mangle]

0 commit comments

Comments
 (0)