linux-user: sparc64: Use correct target SHMLBA in shmat()
PATCH 1/1 linux-user: sparc64: Use correct target SHMLBA in shmat()
In commit 40df8c0c0722 support was added for target-specific handling of SHMLBA. Unfortunately the sparc64-specific part of the change got lost somewhere between the patch being posted to the list and going into master:
http://patchwork.ozlabs.org/patch/646980/
http://patchwork.ozlabs.org/patch/673339/
Add the accidentally-dropped code.
--- linux-user/sparc64/target_syscall.h | 7 +++++++ 1 file changed, 7 insertions(+)
linux-user/sparc64/target_syscall.h +7 -0
@@ -23,4 +23,11 @@ struct target_pt_regs {#define TARGET_MLOCKALL_MCL_CURRENT 0x2000#define TARGET_MLOCKALL_MCL_FUTURE 0x4000 +#define TARGET_FORCE_SHMLBA + +static inline abi_ulong target_shmlba (CPUSPARCState *env) +{ +return MAX (TARGET_PAGE_SIZE ,16 *1024 ); +} +#endif /* SPARC64_TARGET_SYSCALL_H */
Signature · 1 line
2.7.4
Quoted 1 line · Peter Maydell
In commit
40df8c0c0722support was added for target-specific
I don't have commit 40df8c0c0722, I haveee8e76141b4dd00f8e97fda274876a17f9a46bbe.
Is this something wrong with my repo?
Laurent
Quoted 9 lines · Laurent Vivier
Quoted 1 line · Peter Maydell
In commit
40df8c0c0722support was added for target-specificI don't have commit
40df8c0c0722, I haveee8e76141b4dd00f8e97fda274876a17f9a46bbe.Is this something wrong with my repo?
No, I cut-n-pasted the wong commit hash into the commit message by accident. The commit message should read "ee8e76141b4dd" (the patch itself is correct I think).
thanks
-- PMM
Riku Voipio
AppliedQuoted 6 lines · Peter Maydell
Quoted 5 lines · Laurent Vivier
Quoted 1 line · Peter Maydell
In commit
40df8c0c0722support was added for target-specific
Quoted 8 lines
Quoted 4 lines
I don't have commit
40df8c0c0722, I haveee8e76141b4dd00f8e97fda274876a17f9a46bbe.Is this something wrong with my repo?
No, I cut-n-pasted the wong commit hash into the commit message by accident. The commit message should read "
ee8e76141b4dd" (the patch itself is correct I think).
Applied, thanks
Riku