Pre-allocate x86 kernel PD entries

This commit is contained in:
Jeremy Soller
2022-08-21 13:21:59 -06:00
parent bdba700c21
commit d3fbbd5918
3 changed files with 11 additions and 5 deletions
+1 -4
View File
@@ -76,10 +76,7 @@ pub fn resource() -> Result<Vec<u8>> {
format!("{}", ticks)
};
let mut memory = 0;
if let Some(ref kfx) = context.kstack {
memory += kfx.len();
}
let mut memory = context.kfx.len();
if let Some(ref kstack) = context.kstack {
memory += kstack.len();
}