2 * Copyright (C) 2012, The AROS Development Team
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
12 #include <asm/amcc440.h>
13 #include "kernel_syscall.h"
15 #define EXCEPTIONS_COUNT 16
17 typedef uint32_t cpumode_t
;
20 #define goUser() do { } while (0)
21 #define goBack(val) do { } while (0)
23 #define krnSysCall(n) \
24 asm volatile("li %%r3,%0; sc"::"i"(n):"memory","r3");
26 /* Architecture specific syscalls */
27 #define SC_IRQ_ENABLE 0x201
28 #define SC_IRQ_DISABLE 0x202
30 #define krnSysCall(n) \
31 asm volatile("li %%r3,%0; sc"::"i"(n):"memory","r3");
33 #define krnSysCall1(n, arg) \
34 asm volatile("lwz %%r4,%1; li %%r3,%0; sc"::"i"(n),"m"(arg):"memory","r3","r4");
36 typedef context_t regs_t
;
38 #endif /* KERNEL_CPU_H */