Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: linux_syscall_support.h

Issue 389673002: MIPS: The new ABI should be allowed to use r8 and r9 for syscalls. (Closed) Base URL: http://linux-syscall-support.googlecode.com/svn/trunk/lss/
Patch Set: address comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: linux_syscall_support.h
===================================================================
--- linux_syscall_support.h (revision 26)
+++ linux_syscall_support.h (working copy)
@@ -2565,14 +2565,22 @@
#define LSS_REG(r,a) register unsigned long __r##r __asm__("$"#r) = \
(unsigned long)(a)
#undef LSS_BODY
+ #undef LSS_SYSCALL_CLOBBERS
+ #if _MIPS_SIM == _MIPS_SIM_ABI32
+ #define LSS_SYSCALL_CLOBBERS "$8", "$9", "$10", "$11", "$12", \
Mark Seaborn 2014/07/22 18:19:37 Shouldn't this also have $1 (aka $at), $3 (aka $v1
Lei Zhang 2014/07/31 22:52:51 Done.
+ "$13", "$14", "$15", "$24", "$25", \
+ "memory"
+ #else
+ #define LSS_SYSCALL_CLOBBERS "$1", "3" "$10", "$11", "$12", \
Mark Seaborn 2014/07/22 18:19:37 Presumably should be: "$3", i.e. missing comma
Lei Zhang 2014/07/31 22:52:51 Done.
+ "$13", "$14", "$15", "$24", "$25", \
+ "hi", "lo", "memory"
+ #endif
#define LSS_BODY(type,name,r7,...) \
register unsigned long __v0 __asm__("$2") = __NR_##name; \
__asm__ __volatile__ ("syscall\n" \
: "+r"(__v0), r7 (__r7) \
: "0"(__v0), ##__VA_ARGS__ \
- : "$8", "$9", "$10", "$11", "$12", \
- "$13", "$14", "$15", "$24", "$25", \
- "memory"); \
+ : LSS_SYSCALL_CLOBBERS); \
LSS_RETURN(type, __v0, __r7)
#undef _syscall0
#define _syscall0(type, name) \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698