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
nexedi
linux
Commits
0d260ed9
Commit
0d260ed9
authored
Nov 17, 2002
by
Martin Schwidefsky
Committed by
Linus Torvalds
Nov 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] s390: gcc 3.2 fixes.
Make the kernel compile with gcc 3.2.
parent
d3b904a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
include/asm-s390/smp.h
include/asm-s390/smp.h
+1
-1
include/asm-s390/unistd.h
include/asm-s390/unistd.h
+12
-12
include/asm-s390x/unistd.h
include/asm-s390x/unistd.h
+12
-12
No files found.
include/asm-s390/smp.h
View file @
0d260ed9
...
@@ -29,7 +29,7 @@ typedef struct
...
@@ -29,7 +29,7 @@ typedef struct
}
sigp_info
;
}
sigp_info
;
extern
volatile
unsigned
long
cpu_online_map
;
extern
volatile
unsigned
long
cpu_online_map
;
extern
unsigned
long
cpu_possible_map
;
extern
volatile
unsigned
long
cpu_possible_map
;
#define NO_PROC_ID 0xFF
/* No processor magic marker */
#define NO_PROC_ID 0xFF
/* No processor magic marker */
...
...
include/asm-s390/unistd.h
View file @
0d260ed9
...
@@ -258,11 +258,11 @@ do { \
...
@@ -258,11 +258,11 @@ do { \
return (type) (res); \
return (type) (res); \
} while (0)
} while (0)
#define _svc_clobber "
2", "
cc", "memory"
#define _svc_clobber "cc", "memory"
#define _syscall0(type,name) \
#define _syscall0(type,name) \
type name(void) { \
type name(void) { \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
...
@@ -275,13 +275,13 @@ type name(void) { \
...
@@ -275,13 +275,13 @@ type name(void) { \
#define _syscall1(type,name,type1,arg1) \
#define _syscall1(type,name,type1,arg1) \
type name(type1 arg1) { \
type name(type1 arg1) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1) \
"
0
" (__arg1) \
: _svc_clobber ); \
: _svc_clobber ); \
__syscall_return(type,__res); \
__syscall_return(type,__res); \
}
}
...
@@ -290,13 +290,13 @@ type name(type1 arg1) { \
...
@@ -290,13 +290,13 @@ type name(type1 arg1) { \
type name(type1 arg1, type2 arg2) { \
type name(type1 arg1, type2 arg2) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2) \
"d" (__arg2) \
: _svc_clobber ); \
: _svc_clobber ); \
__syscall_return(type,__res); \
__syscall_return(type,__res); \
...
@@ -307,13 +307,13 @@ type name(type1 arg1, type2 arg2, type3 arg3) { \
...
@@ -307,13 +307,13 @@ type name(type1 arg1, type2 arg2, type3 arg3) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3) \
"d" (__arg3) \
: _svc_clobber ); \
: _svc_clobber ); \
...
@@ -327,13 +327,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
...
@@ -327,13 +327,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
register type4 __arg4 asm("5") = arg4; \
register type4 __arg4 asm("5") = arg4; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3), \
"d" (__arg3), \
"d" (__arg4) \
"d" (__arg4) \
...
@@ -350,13 +350,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \
...
@@ -350,13 +350,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
register type4 __arg4 asm("5") = arg4; \
register type4 __arg4 asm("5") = arg4; \
register type5 __arg5 asm("6") = arg5; \
register type5 __arg5 asm("6") = arg5; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lr %0,2" \
" lr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3), \
"d" (__arg3), \
"d" (__arg4), \
"d" (__arg4), \
...
...
include/asm-s390x/unistd.h
View file @
0d260ed9
...
@@ -225,11 +225,11 @@ do { \
...
@@ -225,11 +225,11 @@ do { \
return (type) (res); \
return (type) (res); \
} while (0)
} while (0)
#define _svc_clobber "
2", "
cc", "memory"
#define _svc_clobber "cc", "memory"
#define _syscall0(type,name) \
#define _syscall0(type,name) \
type name(void) { \
type name(void) { \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
...
@@ -242,13 +242,13 @@ type name(void) { \
...
@@ -242,13 +242,13 @@ type name(void) { \
#define _syscall1(type,name,type1,arg1) \
#define _syscall1(type,name,type1,arg1) \
type name(type1 arg1) { \
type name(type1 arg1) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1) \
"
0
" (__arg1) \
: _svc_clobber ); \
: _svc_clobber ); \
__syscall_return(type,__res); \
__syscall_return(type,__res); \
}
}
...
@@ -257,13 +257,13 @@ type name(type1 arg1) { \
...
@@ -257,13 +257,13 @@ type name(type1 arg1) { \
type name(type1 arg1, type2 arg2) { \
type name(type1 arg1, type2 arg2) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2) \
"d" (__arg2) \
: _svc_clobber ); \
: _svc_clobber ); \
__syscall_return(type,__res); \
__syscall_return(type,__res); \
...
@@ -274,13 +274,13 @@ type name(type1 arg1, type2 arg2, type3 arg3) { \
...
@@ -274,13 +274,13 @@ type name(type1 arg1, type2 arg2, type3 arg3) { \
register type1 __arg1 asm("2") = arg1; \
register type1 __arg1 asm("2") = arg1; \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3) \
"d" (__arg3) \
: _svc_clobber ); \
: _svc_clobber ); \
...
@@ -294,13 +294,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
...
@@ -294,13 +294,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
register type2 __arg2 asm("3") = arg2; \
register type2 __arg2 asm("3") = arg2; \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
register type4 __arg4 asm("5") = arg4; \
register type4 __arg4 asm("5") = arg4; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3), \
"d" (__arg3), \
"d" (__arg4) \
"d" (__arg4) \
...
@@ -317,13 +317,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \
...
@@ -317,13 +317,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \
register type3 __arg3 asm("4") = arg3; \
register type3 __arg3 asm("4") = arg3; \
register type4 __arg4 asm("5") = arg4; \
register type4 __arg4 asm("5") = arg4; \
register type5 __arg5 asm("6") = arg5; \
register type5 __arg5 asm("6") = arg5; \
long __res;
\
register long __res asm("2");
\
__asm__ __volatile__ ( \
__asm__ __volatile__ ( \
" svc %b1\n" \
" svc %b1\n" \
" lgr %0,2" \
" lgr %0,2" \
: "=d" (__res) \
: "=d" (__res) \
: "i" (__NR_##name), \
: "i" (__NR_##name), \
"
d
" (__arg1), \
"
0
" (__arg1), \
"d" (__arg2), \
"d" (__arg2), \
"d" (__arg3), \
"d" (__arg3), \
"d" (__arg4), \
"d" (__arg4), \
...
...
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