cheri-security / MorelloLinux / exampleCode / src / util / asm.h
asm.h
Raw
/*
 * Copyright (c) 2023 Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#pragma once

#define FUN(fn) \
    .global fn; \
    .balign 16; \
    .type fn, %function; \
    fn

#define END(fn) \
    .size fn, .-fn;

#define DEC(sym) \
    .global sym; \
    .type sym,%function; \
    .size sym,16;

#define SYM(sym) \
    .global sym; \
    .size sym,16;