am-kernels/tests/cpu-tests/include/trap.h
2021-08-11 16:46:45 +08:00

13 lines
181 B
C

#ifndef __TRAP_H__
#define __TRAP_H__
#include <am.h>
#include <klib.h>
#include <klib-macros.h>
__attribute__((noinline))
void check(bool cond) {
if (!cond) halt(1);
}
#endif