pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ald Deal with move of the x87 definitions in Net...
details: https://anonhg.NetBSD.org/pkgsrc/rev/41f57298e75e
branches: trunk
changeset: 349229:41f57298e75e
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Jul 02 14:41:59 2016 +0000
description:
Deal with move of the x87 definitions in NetBSD 7.0.
diffstat:
devel/ald/distinfo | 3 +-
devel/ald/patches/patch-libDebug_arch_ix86_source_netbsd-x86.c | 46 ++++++++++
2 files changed, 48 insertions(+), 1 deletions(-)
diffs (63 lines):
diff -r 34f0bee15b25 -r 41f57298e75e devel/ald/distinfo
--- a/devel/ald/distinfo Sat Jul 02 14:41:24 2016 +0000
+++ b/devel/ald/distinfo Sat Jul 02 14:41:59 2016 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 03:27:13 agc Exp $
+$NetBSD: distinfo,v 1.6 2016/07/02 14:41:59 joerg Exp $
SHA1 (ald-0.1.7.tar.gz) = e9734b434047a3e4b0d8aed48f017bdf12f27039
RMD160 (ald-0.1.7.tar.gz) = 37a2049005fd7101f69e26212e814ebca14dfdbf
SHA512 (ald-0.1.7.tar.gz) = dbde0929beebe51ef5f77055b5f396630e16fd01ded4210d828f9ce97c676e7863700a98bf02d26e10cc2d8481adf329d8c8cb11c866302361221f072dbf45bf
Size (ald-0.1.7.tar.gz) = 665998 bytes
SHA1 (patch-aa) = eaa0c606b9735fbde224f0a95b822c76626bb35e
+SHA1 (patch-libDebug_arch_ix86_source_netbsd-x86.c) = 1767d5364ac453ad9c041cb2c5c89349c61d782f
diff -r 34f0bee15b25 -r 41f57298e75e devel/ald/patches/patch-libDebug_arch_ix86_source_netbsd-x86.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ald/patches/patch-libDebug_arch_ix86_source_netbsd-x86.c Sat Jul 02 14:41:59 2016 +0000
@@ -0,0 +1,46 @@
+$NetBSD: patch-libDebug_arch_ix86_source_netbsd-x86.c,v 1.1 2016/07/02 14:41:59 joerg Exp $
+
+--- libDebug/arch/ix86/source/netbsd-x86.c.orig 2016-07-02 09:20:24.000000000 +0000
++++ libDebug/arch/ix86/source/netbsd-x86.c
+@@ -20,7 +20,12 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <machine/reg.h>
++#include <sys/param.h>
++#if __NetBSD_Version__ >= 700000000
++#include <x86/fpu.h>
++#else
+ #include <machine/npx.h>
++#endif
+
+ /*
+ * Top-level includes
+@@ -261,6 +266,20 @@ x86readFPUDebug(struct debugWorkspace *w
+
+ fpframe = (struct save87 *) &(ws->regContents.fpRegs);
+
++#if __NetBSD_Version__ >= 700000000
++ fpuState->fctrl = fpframe->s87_cw;
++ fpuState->fstat = fpframe->s87_sw;
++ fpuState->ftag = fpframe->s87_tw;
++ fpuState->fip = fpframe->s87_ip.fa_32.fa_off;
++ fpuState->fcs = fpframe->s87_ip.fa_32.fa_seg;
++ fpuState->fopcode = fpframe->s87_ip.fa_32.fa_opcode;
++ fpuState->fooff = fpframe->s87_ip.fa_32.fa_off;
++ fpuState->foseg = fpframe->s87_ip.fa_32.fa_seg;
++
++ memcpy(fpuState->stptr,
++ fpframe->s87_ac,
++ FPU_NUM_DATA_REGS * FPU_DATA_REG_SIZE);
++#else
+ fpuState->fctrl = fpframe->sv_env.en_cw;
+ fpuState->fstat = fpframe->sv_env.en_sw;
+ fpuState->ftag = fpframe->sv_env.en_tw;
+@@ -273,6 +292,7 @@ x86readFPUDebug(struct debugWorkspace *w
+ memcpy(fpuState->stptr,
+ fpframe->sv_ac,
+ FPU_NUM_DATA_REGS * FPU_DATA_REG_SIZE);
++#endif
+
+ #if 0
+ fpuState->fctrl = *((unsigned short *) x86Registers[REG_FCTRL].valptr);
Home |
Main Index |
Thread Index |
Old Index