ports/emulators/qemu-devel/files/extra-patch-6201cb17ad905dffee1b2eb76f58fb032e99b2a1
Juergen Lock 48a18b5a84 - Add two more bsd-user patches, with these sbruno can now build 32bit
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]
2014-04-06 15:56:23 +00:00

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 */