diff options
author | tron <tron@pkgsrc.org> | 1999-11-14 18:49:53 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-11-14 18:49:53 +0000 |
commit | e2fa22c1600dbef2ad52750ba07789baa31e6f60 (patch) | |
tree | a7e595ebcabfed1a0150485f747605f0915b9ab2 /devel | |
parent | fda6b83a695b47b034b4a9fc06c06f1349139999 (diff) | |
download | pkgsrc-e2fa22c1600dbef2ad52750ba07789baa31e6f60.tar.gz |
Add arm32 support.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/patches/patch-al | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/devel/libgtop/patches/patch-al b/devel/libgtop/patches/patch-al index 57c23763cb0..6e0cedadd92 100644 --- a/devel/libgtop/patches/patch-al +++ b/devel/libgtop/patches/patch-al @@ -1,6 +1,20 @@ ---- 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 @@ +$NetBSD: patch-al,v 1.5 1999/11/14 18:49:53 tron Exp $ + +--- sysdeps/freebsd/prockernel.c.orig Thu May 27 16:04:03 1999 ++++ sysdeps/freebsd/prockernel.c Sun Nov 14 19:02:50 1999 +@@ -48,6 +48,11 @@ + #include <osreldate.h> + #endif + ++#if defined(__NetBSD__) && defined(__arm32__) ++#include <machine/vmparam.h> ++#define KERNBASE KERNEL_BASE ++#endif ++ + static const unsigned long _glibtop_sysdeps_proc_kernel_pstats = + (1L << GLIBTOP_PROC_KERNEL_MIN_FLT) + + (1L << GLIBTOP_PROC_KERNEL_MAJ_FLT) + +@@ -163,14 +168,32 @@ buf->kstk_eip = (u_int64_t) pcb.pcb_pc; #endif #else @@ -12,16 +26,21 @@ buf->kstk_eip = (u_int64_t) pcb.pcb_tss.__tss_eip; #endif +#else -+#if defined(__m68k__) && defined(__NetBSD__) ++#if defined(__NetBSD__) && defined(__m68k__) + buf->kstk_esp = (u_int64_t) pcb.pcb_usp; + buf->kstk_eip = (u_int64_t) 0; +#else ++#if defined(__NetBSD__) && defined(__arm32__) ++ buf->kstk_esp = (u_int64_t) pcb.pcb_sp; ++ 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 ++#endif buf->flags |= _glibtop_sysdeps_proc_kernel_pcb; +#endif |