]> git.karo-electronics.de Git - karo-tx-linux.git/commit
metag: System Calls
authorJames Hogan <james.hogan@imgtec.com>
Tue, 9 Oct 2012 09:54:51 +0000 (10:54 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 8 Feb 2013 09:53:03 +0000 (09:53 +0000)
commit7efd758cf27eff64288ae0fd94e56166ce49ca68
tree1b112f314abcf9418ca5b73376ef082276377d4a
parent270de53f851b4245284aa87acecbecc1228af375
metag: System Calls

Add metag system call and gateway page interfaces. The metag
architecture port uses the generic system call numbers from
asm-generic/unistd.h, as well as a user gateway page mapped at
0x6ffff000 which contains fast atomic primitives (depending on SMP) and
a fast method of accessing TLS data.

System calls use the SWITCH instruction with the immediate 0x440001 to
signal a system call.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/include/asm/mman.h [new file with mode: 0644]
arch/metag/include/asm/syscall.h [new file with mode: 0644]
arch/metag/include/asm/syscalls.h [new file with mode: 0644]
arch/metag/include/asm/unistd.h [new file with mode: 0644]
arch/metag/include/asm/user_gateway.h [new file with mode: 0644]
arch/metag/include/uapi/asm/unistd.h [new file with mode: 0644]
arch/metag/kernel/sys_metag.c [new file with mode: 0644]
arch/metag/kernel/user_gateway.S [new file with mode: 0644]