use the -newos toolchain even if -elf is present.
[newos.git] / boot / mips / stage2.c
blob678547523812152f5815f64ecaf82e9d4c4daf7f
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
6 static int stack[1024];
8 asm("
9 .text
10 .globl _start
11 _start:
12 lw $sp,_stack_end_addr
13 j start
14 nop
15 _stack_end_addr:
16 .word stack+(1024*4)
18 ");
20 void start()
22 int *a = stack;
23 int *b = 0;
24 *b = 4;
25 for(;;);