sysfork.s
来自「klibc精简化的c程序库」· S 代码 · 共 26 行
S
26 行
/* * arch/sparc/sysfork.S * * The fork and vfork system calls are special on sparc[64]: * they return the "other process" pid in %o0 and the * "is child" flag in %o1 * * Common system-call stub; %g1 already set to syscall number */ .globl __syscall_forkish .type __syscall_forkish,#function .align 4__syscall_forkish: t 0x10 sub %o1, 1, %o1 bcc,a 1f and %o0, %o1, %o0 sethi %hi(errno), %g4 or %g4, %lo(errno), %g4 st %o0,[%g4] mov -1, %o01: retl nop
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?