Compile on i686.
This commit is contained in:
@@ -13,6 +13,12 @@ pub struct ScratchRegisters {
|
||||
}
|
||||
|
||||
impl ScratchRegisters {
|
||||
pub fn a(&self) -> usize {
|
||||
self.eax
|
||||
}
|
||||
pub fn b(&self) -> usize {
|
||||
self.edx
|
||||
}
|
||||
pub fn dump(&self) {
|
||||
println!("EAX: {:08x}", { self.eax });
|
||||
println!("ECX: {:08x}", { self.ecx });
|
||||
@@ -130,6 +136,12 @@ impl InterruptStack {
|
||||
pub fn stack_pointer(&self) -> usize {
|
||||
self.iret.esp
|
||||
}
|
||||
pub fn instr_pointer(&self) -> usize {
|
||||
self.iret.eip
|
||||
}
|
||||
pub fn flags(&self) -> usize {
|
||||
self.iret.eflags
|
||||
}
|
||||
pub fn set_instr_pointer(&mut self, eip: usize) {
|
||||
self.iret.eip = eip;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use alloc::{borrow::Cow, sync::Arc, vec::Vec};
|
||||
use syscall::{SigProcControl, Sigcontrol, SIGKILL, SIGSTOP};
|
||||
use core::{cmp::Ordering, mem::{self, size_of}, num::NonZeroUsize, sync::atomic::AtomicU64};
|
||||
use syscall::{SigProcControl, Sigcontrol, SIGKILL, SIGSTOP, AtomicU64};
|
||||
use core::{cmp::Ordering, mem::{self, size_of}, num::NonZeroUsize};
|
||||
use spin::RwLock;
|
||||
|
||||
use crate::{
|
||||
|
||||
+1
-1
Submodule syscall updated: 4d708dc980...c230cec21c
Reference in New Issue
Block a user