Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
a60710c5
Verified
Commit
a60710c5
authored
9 months ago
by
Jacob Lorentzon
Browse files
Options
Downloads
Patches
Plain Diff
Add missing signal arch offsets.
parent
58d11535
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
redox-rt/src/arch/x86_64.rs
+3
-3
3 additions, 3 deletions
redox-rt/src/arch/x86_64.rs
redox-rt/src/lib.rs
+6
-0
6 additions, 0 deletions
redox-rt/src/lib.rs
with
9 additions
and
3 deletions
redox-rt/src/arch/x86_64.rs
+
3
−
3
View file @
a60710c5
...
@@ -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
,
]);
]);
...
...
This diff is collapsed.
Click to expand it.
redox-rt/src/lib.rs
+
6
−
0
View file @
a60710c5
...
@@ -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
>
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment