repo.or.cz
/
newos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
use the -newos toolchain even if -elf is present.
[newos.git]
/
boot
/
mips
/
stage2.c
blob
678547523812152f5815f64ecaf82e9d4c4daf7f
1
/*
2
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3
** Distributed under the terms of the NewOS License.
4
*/
5
6
static int
stack
[
1024
];
7
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)
17
18
"
);
19
20
void
start
()
21
{
22
int
*
a
=
stack
;
23
int
*
b
=
0
;
24
*
b
=
4
;
25
for
(;;);
26
}
27
28