1 extern int main(int argc
, char **argv
, char **envp
);
2 extern int brk (void *value
);
8 char **environ
= __env
;
10 #define ENABLE_TRACE_MASK 1
15 register int mask
= ENABLE_TRACE_MASK
;
16 __asm__
volatile ("modpc %0,%0,%0"
21 #define STACK_ALIGN 64
26 ptr
= (void *)(((int)ptr
+ STACK_ALIGN
- 1) & ~(STACK_ALIGN
- 1));
27 /* SP must be 64 bytes larger than FP at start. */
28 __asm__
volatile ("mov %0,sp"
30 : "d" (ptr
+STACK_ALIGN
));
31 __asm__
volatile ("mov %0,fp"
39 /* set register values gcc like */
40 register unsigned int mask0
=0x3b001000;
41 register unsigned int mask1
=0x00009107;
42 __asm__
volatile ("mov %0,g14"
44 : "I" (0)); /* gnu structure pointer */
45 __asm__
volatile ("modac %1,%0,%0"
48 "d" (mask1
)); /* fpu control kb */
59 /* The stack grows upwards, so this makes the heap start after a 256K
60 stack area. PlumHall known to fail with less than 73K of stack. */
63 memset (&bss_start
, 0, &end
- &bss_start
);