sys_ge~2.c

来自「操作系统源代码」· C语言 代码 · 共 17 行

C
17
字号
#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);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?