3 #include "sys/syscallasm.h"
8 ! CURBRK contains the current top of allocated space.
9 ! END is a private symbol in svr4, but a public one in sunos4.
10 ! FIXME: CURBRK is 4 bytes for now.
13 GLOBAL (ASM_PRIVATE_SYMBOL (curbrk))
14 ASM_PRIVATE_SYMBOL (curbrk):
16 WORD (ASM_PRIVATE_SYMBOL (end))
18 WORD (ASM_SYMBOL (end))
24 GLOBAL (ASM_SYMBOL (_sbrk_r))
29 GLOBAL (ASM_SYMBOL (sbrk))
34 sethi %hi (ASM_PRIVATE_SYMBOL (curbrk)),%o2
35 lduw [%o2+%lo (ASM_PRIVATE_SYMBOL (curbrk))],%o3
44 stw %o4,[%o2+%lo (ASM_PRIVATE_SYMBOL (curbrk))]
49 GLOBAL (ASM_SYMBOL (_brk_r))
54 GLOBAL (ASM_SYMBOL (brk))
64 sethi %hi (ASM_PRIVATE_SYMBOL (curbrk)),%o3
65 st %o2,[%o3+%lo (ASM_PRIVATE_SYMBOL (curbrk))]
71 sethi %hi (ASM_PRIVATE_SYMBOL (cerror_r)),%g1
72 or %g1,%lo (ASM_PRIVATE_SYMBOL (cerror_r)),%g1
74 sethi %hi (ASM_PRIVATE_SYMBOL (cerror)),%g1
75 or %g1,%lo (ASM_PRIVATE_SYMBOL (cerror)),%g1