blob: 9effc935652ff629cd4d5a7853e2ed172bb6356b [file] [log] [blame]
/*
* arch/riscv64/include/machine/asm.h
*
* Mostly cribbed from mips.
*/
#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 */