From 8811114a9b8ded87db914111327ac281435efb5e Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 8 Apr 2024 23:55:40 +0800 Subject: [PATCH] remove unused alignment feature we're not passing pages around like I thought I would. svae the stack space, so in the future if we do stuff with e.g. suspend/resume we don't have to reserve such a huge chunk of RAM for boot. --- loader/src/swap.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loader/src/swap.rs b/loader/src/swap.rs index d8b42b670..d29a940c8 100644 --- a/loader/src/swap.rs +++ b/loader/src/swap.rs @@ -33,8 +33,7 @@ pub struct SwapSourceHeader { pub aad: [u8; 64], } -/// An aligned, raw-page structure -#[repr(C, align(4096))] +#[repr(C)] pub struct RawPage { pub data: [u8; 4096], }