From fdb4ad8e884a47f920db619165d21127915f9dfa Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 28 Jul 2022 08:21:31 -0600 Subject: [PATCH] Only build debugger on x86_64 for now --- src/debugger.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/debugger.rs b/src/debugger.rs index 23dfc3b..aa99dbe 100644 --- a/src/debugger.rs +++ b/src/debugger.rs @@ -1,6 +1,13 @@ use crate::paging::{RmmA, RmmArch}; +#[cfg(not(target_arch = "x86_64"))] +pub unsafe fn debugger(target_id: Option) { + println!("DEBUGGER TODO"); + println!(); +} + // Super unsafe due to page table switching and raw pointers! +#[cfg(target_arch = "x86_64")] pub unsafe fn debugger(target_id: Option) { println!("DEBUGGER START"); println!();