Move branch quota change to top of boot_page_directory init

This commit is contained in:
Sam Tebbs 2019-04-23 18:50:58 +01:00 committed by SamTebbs33
parent a7f28c50e1
commit 80b88c7d03

View file

@ -30,6 +30,8 @@ const KERNEL_NUM_PAGES = 1;
// The initial page directory used for booting into the higher half. Should be overwritten later // The initial page directory used for booting into the higher half. Should be overwritten later
export var boot_page_directory: [1024]u32 align(4096) linksection(".rodata.boot") = init: { export var boot_page_directory: [1024]u32 align(4096) linksection(".rodata.boot") = init: {
// Increase max number of branches done by comptime evaluator
@setEvalBranchQuota(1024);
// Temp value // Temp value
var dir: [1024]u32 = undefined; var dir: [1024]u32 = undefined;