Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
57e6f964
Commit
57e6f964
authored
Jan 28, 2008
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRIS v32: Let compiler know that memory is clobbered after a break op.
parent
12e1b1e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
include/asm-cris/arch-v32/unistd.h
include/asm-cris/arch-v32/unistd.h
+14
-7
No files found.
include/asm-cris/arch-v32/unistd.h
View file @
57e6f964
...
...
@@ -16,7 +16,8 @@ type name(void) \
".endif\n\t" \
"break 13" \
: "=r" (__a) \
: "r" (__n_)); \
: "r" (__n_) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -33,7 +34,8 @@ type name(type1 arg1) \
".endif\n\t" \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a)); \
: "r" (__n_), "0" (__a) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -51,7 +53,8 @@ type name(type1 arg1,type2 arg2) \
".endif\n\t" \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a), "r" (__b)); \
: "r" (__n_), "0" (__a), "r" (__b) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -70,7 +73,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) \
".endif\n\t" \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a), "r" (__b), "r" (__c)); \
: "r" (__n_), "0" (__a), "r" (__b), "r" (__c) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -91,7 +95,8 @@ type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a), "r" (__b), \
"r" (__c), "r" (__d)); \
"r" (__c), "r" (__d)\
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -114,7 +119,8 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a), "r" (__b), \
"r" (__c), "r" (__d), "h" (__e)); \
"r" (__c), "r" (__d), "h" (__e) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
@@ -138,7 +144,8 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
"break 13" \
: "=r" (__a) \
: "r" (__n_), "0" (__a), "r" (__b), \
"r" (__c), "r" (__d), "h" (__e), "x" (__f)); \
"r" (__c), "r" (__d), "h" (__e), "x" (__f) \
: "memory"); \
if (__a >= 0) \
return (type) __a; \
errno = -__a; \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment