mips packages in poudriere (after adding 32bit qemu-mips support to it),
tho he used his git repo that has the same patches: (and sson's binmisc
code)
https://github.com/seanbruno/qemu/tree/bsd-user/bsd-user
https://wiki.freebsd.org/QemuUserModeHowTo
- Fixup comment s/daddu/addu/g . [1]
- Wrap mmap() allocation search to low memory to avoid another assert.
- Bump PORTREVISION.
Submitted by: sbruno [1]
Obtained from: 6201cb17ad (diff-3ed994b5af908e5063b9d5724056d1b4) [1]
12 lines
591 B
Plaintext
12 lines
591 B
Plaintext
--- a/bsd-user/mips/target_arch_sigtramp.h
|
|
+++ b/bsd-user/mips/target_arch_sigtramp.h
|
|
@@ -8,7 +8,7 @@ static inline abi_long setup_sigtramp(abi_ulong offset, unsigned sigf_uc,
|
|
{
|
|
int i;
|
|
uint32_t sigtramp_code[TARGET_SZSIGCODE/TARGET_INSN_SIZE] = {
|
|
- /* 1 */ 0x27A40000 + sigf_uc, /* daddu $a0, $sp, (sigf_uc) */
|
|
+ /* 1 */ 0x27A40000 + sigf_uc, /* addu $a0, $sp, (sigf_uc) */
|
|
/* 2 */ 0x24020000 + sys_sigreturn, /* li $v0, (sys_sigreturn) */
|
|
/* 3 */ 0x0000000C, /* syscall */
|
|
/* 4 */ 0x0000000D /* break */
|