haiku/headers/private/system/arch/riscv64/asm_defs.h
Alexander von Gluck IV c085f38639 riscv64: Fill in more bulk architecture items around libroot/kernel
Change-Id: Ia2a86d8814d06950ea2d2d19d966c642d26f81d6
Reviewed-on: https://review.haiku-os.org/c/1302
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-03-25 17:16:03 +00:00

20 lines
578 B
C

/*
* Copyright 2008, François Revol, revol@free.fr.
* Distributed under the terms of the MIT License.
*/
#ifndef SYSTEM_ARCH_RISCV64_ASM_DEFS_H
#define SYSTEM_ARCH_RISCV64_ASM_DEFS_H
/* include arch version helpers */
//#include <arch_riscv64_version.h>
#define SYMBOL(name) .global name; name
#define SYMBOL_END(name) 1: .size name, 1b - name
#define STATIC_FUNCTION(name) .type name, %function; name
#define FUNCTION(name) .global name; .type name, %function; name
#define FUNCTION_END(name) 1: .size name, 1b - name
#endif /* SYSTEM_ARCH_RISCV64_ASM_DEFS_H */