Initial revision

This commit is contained in:
Ben Gras
2005-04-21 14:53:53 +00:00
commit 9865aeaa79
2264 changed files with 411685 additions and 0 deletions

16
lib/syslib/sys_getsp.c Executable file
View File

@@ -0,0 +1,16 @@
#include "syslib.h"
PUBLIC int sys_getsp(proc, newsp)
int proc; /* process whose sp is wanted */
vir_bytes *newsp; /* place to put sp read from kernel */
{
/* Ask the kernel what the sp is. */
message m;
int r;
m.m1_i1 = proc;
r = _taskcall(SYSTASK, SYS_GETSP, &m);
*newsp = (vir_bytes) m.STACK_PTR;
return(r);
}