Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
9e5b145a
Commit
9e5b145a
authored
Nov 03, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Drop dead code, comments
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
f63777d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
restorer.c
restorer.c
+3
-17
No files found.
restorer.c
View file @
9e5b145a
...
...
@@ -37,8 +37,6 @@
c += 'a' - 10; \
} while (0)
#define sigframe_addr(p) ((long)p)
static
void
always_inline
write_char
(
char
c
)
{
sys_write
(
1
,
&
c
,
1
);
...
...
@@ -283,17 +281,6 @@ self_len_end:
* registers from the frame, set them up and
* finally pass execution to the new IP.
*/
/*
* The sigframe should be on the stack, also
* note the kernel uses this stack not only
* for restoring registers and such but it
* save pt_regs there after sigframe, so make
* sure the stack is big enough to keep all
* this, otherwise the application get killed
* by the kernel with stack overflow error.
*/
rt_sigframe
=
args
->
rt_sigframe
-
sizeof
(
*
rt_sigframe
);
#define CPREG1(d) rt_sigframe->uc.uc_mcontext.d = core_entry.u.arch.gpregs.d
...
...
@@ -321,10 +308,9 @@ self_len_end:
CPREG1
(
gs
);
CPREG1
(
fs
);
/* FIXME: What with cr2 and friends which are rest there? */
write_hex_n
(
0x111
);
write_hex_n
((
long
)
rt_sigframe
);
/*
* sigframe is on stack.
*/
new_sp
=
(
long
)
rt_sigframe
+
8
;
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment