diff options
Diffstat (limited to 'usr/include/arch/loongarch64/machine/asm.h')
-rw-r--r-- | usr/include/arch/loongarch64/machine/asm.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usr/include/arch/loongarch64/machine/asm.h b/usr/include/arch/loongarch64/machine/asm.h new file mode 100644 index 0000000..6fe5dba --- /dev/null +++ b/usr/include/arch/loongarch64/machine/asm.h @@ -0,0 +1,24 @@ +/* + * include/arch/loongarch64/machine/asm.h + */ + +#ifndef _MACHINE_ASM_H +#define _MACHINE_ASM_H + +/* + * ENTRY - declare entry point + */ +#define ENTRY(symbol) \ + .globl symbol; \ + .align 2; \ + .type symbol, @function; \ +symbol: + +/* + * END - mark end of function + */ +#define END(function) \ + .size function, . - function + + +#endif /* _MACHINE_ASM_H */ |