diff options
author | he <he@pkgsrc.org> | 1999-11-03 08:50:41 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 1999-11-03 08:50:41 +0000 |
commit | c122717352492318c9a2297e62c24ac8fbef1474 (patch) | |
tree | c70df2cc98d7b0c57fbdcefb5cf9809a8cfcfc34 /devel | |
parent | 870bc96615ce06e1d4fb2e2ce56a6618d9313438 (diff) | |
download | pkgsrc-c122717352492318c9a2297e62c24ac8fbef1474.tar.gz |
Provide some defaults for non-i386 NetBSD platforms.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/files/patch-sum | 3 | ||||
-rw-r--r-- | devel/libgtop/patches/patch-al | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/devel/libgtop/files/patch-sum b/devel/libgtop/files/patch-sum index 68605b59d1f..8f577c8bc51 100644 --- a/devel/libgtop/files/patch-sum +++ b/devel/libgtop/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.4 1999/11/02 23:16:20 tron Exp $ +$NetBSD: patch-sum,v 1.5 1999/11/03 08:50:41 he Exp $ MD5 (patch-aa) = ff5a586a4aaf732a48a7dc7d614683ff MD5 (patch-ab) = 1be0d48b1e41fea46ee459a320fb11c7 @@ -11,3 +11,4 @@ MD5 (patch-ah) = f6c0bc32c3905426377361e7c0373547 MD5 (patch-ai) = 073358fd3107c404d419d0ef70cdd26c MD5 (patch-aj) = 4bc9021f359aee85e93d0caa24d9c71b MD5 (patch-ak) = 985f207c67e0288e6692d9796b995498 +MD5 (patch-al) = 378de477685a0d44c2b6ff0f56abedf8 diff --git a/devel/libgtop/patches/patch-al b/devel/libgtop/patches/patch-al new file mode 100644 index 00000000000..57c23763cb0 --- /dev/null +++ b/devel/libgtop/patches/patch-al @@ -0,0 +1,30 @@ +--- sysdeps/freebsd/prockernel.c.old Thu May 27 16:04:03 1999 ++++ sysdeps/freebsd/prockernel.c Wed Nov 3 01:50:50 1999 +@@ -163,14 +163,27 @@ + buf->kstk_eip = (u_int64_t) pcb.pcb_pc; + #endif + #else ++#ifdef __i386__ + buf->kstk_esp = (u_int64_t) pcb.pcb_tss.tss_esp0; + #ifdef __bsdi__ + buf->kstk_eip = (u_int64_t) pcb.pcb_tss.tss_eip; + #else + buf->kstk_eip = (u_int64_t) pcb.pcb_tss.__tss_eip; + #endif ++#else ++#if defined(__m68k__) && defined(__NetBSD__) ++ buf->kstk_esp = (u_int64_t) pcb.pcb_usp; ++ buf->kstk_eip = (u_int64_t) 0; ++#else ++#ifdef __NetBSD__ ++ /* provide some defaults for other platforms */ ++ buf->kstk_esp = (u_int64_t) 0; ++ buf->kstk_eip = (u_int64_t) 0; ++#endif ++#endif + + buf->flags |= _glibtop_sysdeps_proc_kernel_pcb; ++#endif + #endif + } + |