This repository was archived by the owner on Aug 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasm.h
More file actions
40 lines (35 loc) · 2.05 KB
/
Copy pathasm.h
File metadata and controls
40 lines (35 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <asm/cp0regdef.h>
#include <asm/regdef.h>
/*
* LEAF - declare leaf routine
*/
#define LEAF(symbol) \
.globl symbol; \
.align 2; \
.type symbol, @function; \
.ent symbol; \
symbol: \
.frame sp, 0, ra
/*
* NESTED - declare nested routine entry point
*/
#define NESTED(symbol, framesize, rpc) \
.globl symbol; \
.align 2; \
.type symbol, @function; \
.ent symbol; \
symbol: \
.frame sp, framesize, rpc
/*
* END - mark end of function
*/
#define END(function) \
.end function; \
.size function, .- function
#define EXPORT(symbol) \
.globl symbol; \
symbol:
#define FEXPORT(symbol) \
.globl symbol; \
.type symbol, @function; \
symbol: