public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe86ba
)
check for default program load address
author
Brett Gordon
<beretta42@gmail.com>
Sat, 27 May 2017 04:19:06 +0000
(
00:19
-0400)
committer
Brett Gordon
<beretta42@gmail.com>
Sat, 27 May 2017 04:19:06 +0000
(
00:19
-0400)
Kernel/syscall_exec16.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_exec16.c
b/Kernel/syscall_exec16.c
index
71b5c8c
..
bdc4456
100644
(file)
--- a/
Kernel/syscall_exec16.c
+++ b/
Kernel/syscall_exec16.c
@@
-137,7
+137,10
@@
arg_t _execve(void)
udata.u_error = ENOEXEC;
goto nogood2;
}
+
progload = (*(uint8_t *)(buf + 7)) << 8;
+ if ( ! progload )
+ progload = PROGLOAD;
top = *(uint16_t *)(buf + 8);
if (top == 0) /* Legacy 'all space' binary */