diff --git a/src/arch/x86/mod.rs b/src/arch/x86/mod.rs index bb382bab16..025c577319 100644 --- a/src/arch/x86/mod.rs +++ b/src/arch/x86/mod.rs @@ -7,12 +7,6 @@ pub mod consts; #[macro_use] pub mod interrupt; -// Flags -pub mod flags { - pub const SHIFT_SINGLESTEP: usize = 8; - pub const FLAG_SINGLESTEP: usize = 1 << SHIFT_SINGLESTEP; -} - #[unsafe(naked)] pub unsafe extern "C" fn arch_copy_to_user(dst: usize, src: usize, len: usize) -> u8 { core::arch::naked_asm!( diff --git a/src/arch/x86_64/mod.rs b/src/arch/x86_64/mod.rs index a43557ec0d..513970014a 100644 --- a/src/arch/x86_64/mod.rs +++ b/src/arch/x86_64/mod.rs @@ -15,12 +15,6 @@ pub mod interrupt; /// Miscellaneous processor features pub mod misc; -// Flags -pub mod flags { - pub const SHIFT_SINGLESTEP: usize = 8; - pub const FLAG_SINGLESTEP: usize = 1 << SHIFT_SINGLESTEP; -} - // TODO: Maybe support rewriting relocations (using LD's --emit-relocs) when working with entire // functions? #[unsafe(naked)] diff --git a/src/arch/x86_shared/mod.rs b/src/arch/x86_shared/mod.rs index 3c18631226..e3c30501b8 100644 --- a/src/arch/x86_shared/mod.rs +++ b/src/arch/x86_shared/mod.rs @@ -38,3 +38,8 @@ pub use ::rmm::x86::X86Arch as CurrentRmmArch; #[cfg(target_arch = "x86_64")] pub use ::rmm::x86_64::X8664Arch as CurrentRmmArch; + +// Flags +pub mod flags { + pub const FLAG_SINGLESTEP: usize = 1 << 8; +}