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
2a9f136d
Commit
2a9f136d
authored
Mar 04, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Fix ia32 sysinfo() emulation.
parent
e5b67f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+9
-2
No files found.
arch/ia64/ia32/sys_ia32.c
View file @
2a9f136d
...
@@ -3433,8 +3433,12 @@ struct sysinfo32 {
...
@@ -3433,8 +3433,12 @@ struct sysinfo32 {
u32
bufferram
;
u32
bufferram
;
u32
totalswap
;
u32
totalswap
;
u32
freeswap
;
u32
freeswap
;
unsigned
short
procs
;
u16
procs
;
char
_f
[
22
];
u16
pad
;
u32
totalhigh
;
u32
freehigh
;
u32
mem_unit
;
char
_f
[
8
];
};
};
asmlinkage
long
asmlinkage
long
...
@@ -3463,6 +3467,9 @@ sys32_sysinfo (struct sysinfo32 *info)
...
@@ -3463,6 +3467,9 @@ sys32_sysinfo (struct sysinfo32 *info)
err
|=
__put_user
(
s
.
totalswap
,
&
info
->
totalswap
);
err
|=
__put_user
(
s
.
totalswap
,
&
info
->
totalswap
);
err
|=
__put_user
(
s
.
freeswap
,
&
info
->
freeswap
);
err
|=
__put_user
(
s
.
freeswap
,
&
info
->
freeswap
);
err
|=
__put_user
(
s
.
procs
,
&
info
->
procs
);
err
|=
__put_user
(
s
.
procs
,
&
info
->
procs
);
err
|=
__put_user
(
s
.
totalhigh
,
&
info
->
totalhigh
);
err
|=
__put_user
(
s
.
freehigh
,
&
info
->
freehigh
);
err
|=
__put_user
(
s
.
mem_unit
,
&
info
->
mem_unit
);
if
(
err
)
if
(
err
)
return
-
EFAULT
;
return
-
EFAULT
;
return
ret
;
return
ret
;
...
...
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