git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
I really need to learn to compile test before commiting
[tpg/acess2.git]
/
Usermode
/
Libraries
/
ld-acess.so_src
/
main.c
diff --git
a/Usermode/Libraries/ld-acess.so_src/main.c
b/Usermode/Libraries/ld-acess.so_src/main.c
index
fb9cd35
..
dc5d4d3
100644
(file)
--- a/
Usermode/Libraries/ld-acess.so_src/main.c
+++ b/
Usermode/Libraries/ld-acess.so_src/main.c
@@
-23,8
+23,8
@@
int SoMain(Uint base, int arg1)
{
\r
int ret;
\r
\r
- SysDebug("SoMain: base = 0x%x", base);
\r
- SysDebug("SoMain: arg1 = 0x%x", arg1);
\r
+
//
SysDebug("SoMain: base = 0x%x", base);
\r
+
//
SysDebug("SoMain: arg1 = 0x%x", arg1);
\r
\r
// - Assume that the file pointer will be less than 4096
\r
if(base < 0x1000) {
\r
@@
-79,11
+79,11
@@
int DoRelocate( Uint base, char **envp, char *Filename )
*/
\r
int CallUser(Uint entry, Uint sp)
\r
{
\r
- SysDebug("CallUser: (entry=0x%x, sp=0x%x)", entry, sp);
\r
+
//
SysDebug("CallUser: (entry=0x%x, sp=0x%x)", entry, sp);
\r
*(Uint*)(sp-4) = 0; // Clear return address
\r
__asm__ __volatile__ (
\r
"mov %%eax, %%esp;\n\t"
\r
"jmp *%%ecx"
\r
- : : "a"(sp
-4
), "c"(entry));
\r
+ : : "a"(sp), "c"(entry));
\r
for(;;);
\r
}
\r
UCC
git Repository :: git.ucc.asn.au