Skip to content
Snippets Groups Projects
Verified Commit a60710c5 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Add missing signal arch offsets.

parent 58d11535
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ use syscall::data::Sigcontrol; ...@@ -5,7 +5,7 @@ use syscall::data::Sigcontrol;
use syscall::error::*; use syscall::error::*;
use crate::proc::{fork_inner, FdGuard}; use crate::proc::{fork_inner, FdGuard};
use crate::signal::inner_c; use crate::signal::{inner_c, RtSigarea};
// Setup a stack starting from the very end of the address space, and then growing downwards. // Setup a stack starting from the very end of the address space, and then growing downwards.
pub(crate) const STACK_TOP: usize = 1 << 47; pub(crate) const STACK_TOP: usize = 1 << 47;
...@@ -231,8 +231,8 @@ asmfunction!(__relibc_internal_sigentry: [" ...@@ -231,8 +231,8 @@ asmfunction!(__relibc_internal_sigentry: ["
sc_saved_rflags = const offset_of!(Sigcontrol, saved_flags), sc_saved_rflags = const offset_of!(Sigcontrol, saved_flags),
sc_saved_rip = const offset_of!(Sigcontrol, saved_ip), sc_saved_rip = const offset_of!(Sigcontrol, saved_ip),
sc_saved_rsp = const offset_of!(Sigcontrol, saved_sp), sc_saved_rsp = const offset_of!(Sigcontrol, saved_sp),
tcb_sa_off = const 0, // FIXME tcb_sa_off = const offset_of!(crate::Tcb, os_specific) + offset_of!(RtSigarea, arch),
tcb_sc_off = const 0, // FIXME tcb_sc_off = const offset_of!(crate::Tcb, os_specific) + offset_of!(RtSigarea, control),
supports_xsave = sym SUPPORTS_XSAVE, supports_xsave = sym SUPPORTS_XSAVE,
]); ]);
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
#![feature(asm_const, array_chunks, int_roundings, let_chains, slice_ptr_get, sync_unsafe_cell, thread_local)] #![feature(asm_const, array_chunks, int_roundings, let_chains, slice_ptr_get, sync_unsafe_cell, thread_local)]
#![forbid(unreachable_patterns)] #![forbid(unreachable_patterns)]
use generic_rt::GenericTcb;
use self::signal::RtSigarea;
extern crate alloc; extern crate alloc;
#[macro_export] #[macro_export]
...@@ -33,3 +37,5 @@ pub mod auxv_defs; ...@@ -33,3 +37,5 @@ pub mod auxv_defs;
pub mod signal; pub mod signal;
pub mod sync; pub mod sync;
pub mod thread; pub mod thread;
pub type Tcb = GenericTcb<RtSigarea>;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment