arch/boot: disable build of aros-side grub executables for now to bring back nightly...
[AROS.git] / arch / ppc-sam440 / kernel / kernel_cpu.h
bloba655c39819d84ce512b045bc4e55baac58a5747a
1 /*
2 * Copyright (C) 2012, The AROS Development Team
3 * All right reserved.
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
7 */
9 #ifndef KERNEL_CPU_H
10 #define KERNEL_CPU_H
12 #include <asm/amcc440.h>
13 #include "kernel_syscall.h"
15 #define EXCEPTIONS_COUNT 16
17 typedef uint32_t cpumode_t;
19 #define goSuper() 0
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 */