projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make Runtime._syscall() protected so it can be overridden from outside the package
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
crt0.c
diff --git
a/src/org/ibex/nestedvm/crt0.c
b/src/org/ibex/nestedvm/crt0.c
index
7e2c69e
..
8965c1f
100644
(file)
--- a/
src/org/ibex/nestedvm/crt0.c
+++ b/
src/org/ibex/nestedvm/crt0.c
@@
-8,11
+8,16
@@
extern int atexit(void (*f)());
extern void _init();
extern void _fini();
extern void _init();
extern void _fini();
+extern char _gp[];
+register char *gp asm("$28");
+
char **environ;
void _start(char **argv, char **environ_) {
int argc;
char **environ;
void _start(char **argv, char **environ_) {
int argc;
+ if(!gp) gp = _gp;
+
environ = environ_;
/* Call global constructors */
environ = environ_;
/* Call global constructors */