Commit 2e203506 authored by Russell King's avatar Russell King

[ARM] Bring asm/setup.h and asm/unistd.h into line with main ARM tree

This removes some minor differences between Linus' tree and the main
ARM tree; comment clarification and some weird formatting.
parent 370a19cf
...@@ -65,14 +65,14 @@ struct tag_ramdisk { ...@@ -65,14 +65,14 @@ struct tag_ramdisk {
u32 start; /* starting block of floppy-based RAM disk image */ u32 start; /* starting block of floppy-based RAM disk image */
}; };
/* describes where the compressed ramdisk image lives */ /* describes where the compressed ramdisk image lives (virtual address) */
/* /*
* this one accidentally used virtual addresses - as such, * this one accidentally used virtual addresses - as such,
* its depreciated. * its depreciated.
*/ */
#define ATAG_INITRD 0x54410005 #define ATAG_INITRD 0x54410005
/* describes where the compressed ramdisk image lives */ /* describes where the compressed ramdisk image lives (physical address) */
#define ATAG_INITRD2 0x54420005 #define ATAG_INITRD2 0x54420005
struct tag_initrd { struct tag_initrd {
......
...@@ -308,14 +308,14 @@ type name(void) { \ ...@@ -308,14 +308,14 @@ type name(void) { \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
#define _syscall1(type,name,type1,arg1) \ #define _syscall1(type,name,type1,arg1) \
type name(type1 arg1) { \ type name(type1 arg1) { \
register long __r0 __asm__("r0") = (long)arg1; \ register long __r0 __asm__("r0") = (long)arg1; \
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0) \ : "r" (__r0) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
...@@ -327,8 +327,8 @@ type name(type1 arg1,type2 arg2) { \ ...@@ -327,8 +327,8 @@ type name(type1 arg1,type2 arg2) { \
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0),"r" (__r1) \ : "r" (__r0),"r" (__r1) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
...@@ -342,8 +342,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) { \ ...@@ -342,8 +342,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) { \
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0),"r" (__r1),"r" (__r2) \ : "r" (__r0),"r" (__r1),"r" (__r2) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
...@@ -358,8 +358,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \ ...@@ -358,8 +358,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3) \ : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
...@@ -375,8 +375,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \ ...@@ -375,8 +375,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3),"r" (__r4) \ : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3),"r" (__r4) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
} }
...@@ -392,7 +392,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 ...@@ -392,7 +392,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
register long __res __asm__("r0"); \ register long __res __asm__("r0"); \
__asm__ __volatile__ ( \ __asm__ __volatile__ ( \
__syscall(name) \ __syscall(name) \
: "=r" (__res) \ : "=r" (__res) \
: "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3), "r" (__r4),"r" (__r5) \ : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3), "r" (__r4),"r" (__r5) \
: "lr"); \ : "lr"); \
__syscall_return(type,__res); \ __syscall_return(type,__res); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment