Compile on i686.

This commit is contained in:
4lDO2
2024-06-24 13:03:47 +02:00
parent 5b25e2cda7
commit c1ce1d76f9
3 changed files with 15 additions and 3 deletions
+12
View File
@@ -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;
}
+2 -2
View File
@@ -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