Deduplicate definition of FLAG_SINGLESTEP between x86 and x86_64
This commit is contained in:
@@ -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!(
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user