projects
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d9d26
)
[FIX] x86 syscall arguments fix
author
Nikita Kalyazin
<n.kalyazin@samsung.com>
Mon, 15 Jul 2013 07:46:56 +0000
(11:46 +0400)
committer
Nikita Kalyazin
<n.kalyazin@samsung.com>
Mon, 15 Jul 2013 07:46:56 +0000
(11:46 +0400)
writer/kernel_operations.c
patch
|
blob
|
history
diff --git
a/writer/kernel_operations.c
b/writer/kernel_operations.c
index
5927ebe
..
552ae80
100644
(file)
--- a/
writer/kernel_operations.c
+++ b/
writer/kernel_operations.c
@@
-50,12
+50,12
@@
int get_args(unsigned long args[], int cnt, struct pt_regs *regs)
#elif defined(CONFIG_X86_32)
-
if (user_mode(regs)) {
/* If we're in user mode on x86 arch, get arguments from stack */
/* ONLY CDECL CALLING CONVENTION IS SUPPORTED RIGHT NOW */
stack_args = 0;
} else {
+ stack_args = 6;
/* If we're in kernel mode on x86, get arguments from bx, cx, dx, si,
* di, bp */
switch (arg_in_regs) {