Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shift0.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ reset_arg:
.cfi_offset 7, -20
# allocate the new stack
pushl $STACKSIZE
# it would be nice if caller could specify a desired stack size
call malloc
addl $4, %esp
# push the stack on the stack of stacks
Expand Down
2 changes: 1 addition & 1 deletion shift0ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void *_shift_arg_internal(struct cont *c, struct shift_str *s)

void *shift_arg(shiftable_arg_t f, void *arg)
{
struct shift_str s;
struct shift_str s; /* this looks like it could get overridden after return */
s.f = f;
s.arg = arg;
return shift0_arg((shiftable_arg_t) _shift_arg_internal, (void*) &s);
Expand Down