projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a09d0b
)
linux-user: Add MMAP_SHIFT for openrisc
author
Richard Henderson
<rth@twiddle.net>
Sat, 28 Jan 2017 20:54:20 +0000
(12:54 -0800)
committer
Richard Henderson
<rth@twiddle.net>
Mon, 13 Feb 2017 21:14:58 +0000
(08:14 +1100)
The page size on openrisc is 8k. Sync the shift
required for the mmap2 syscall.
Signed-off-by: Richard Henderson <rth@twiddle.net>
linux-user/openrisc/target_syscall.h
patch
|
blob
|
history
diff --git
a/linux-user/openrisc/target_syscall.h
b/linux-user/openrisc/target_syscall.h
index 9d3380f9a8de7a558582d0fccb7474bc99aced50..03104f80afcaa0cc4c90f5f53c0b1d93154d7d4c 100644
(file)
--- a/
linux-user/openrisc/target_syscall.h
+++ b/
linux-user/openrisc/target_syscall.h
@@
-31,4
+31,6
@@
struct target_pt_regs {
#define TARGET_MLOCKALL_MCL_CURRENT 1
#define TARGET_MLOCKALL_MCL_FUTURE 2
+#define MMAP_SHIFT TARGET_PAGE_BITS
+
#endif /* OPENRISC_TARGET_SYSCALL_H */