summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-02 13:08:51 +0000
committerphk <phk@FreeBSD.org>1996-05-02 13:08:51 +0000
commit189514aa416a464e44c25c45746e8ed5e850f03d (patch)
treea3be0a208a93528738779db4a894f64d6609a8db
parent7c53a1f9327e7eab98892482af2efb17a4b34f20 (diff)
downloadFreeBSD-src-189514aa416a464e44c25c45746e8ed5e850f03d.zip
FreeBSD-src-189514aa416a464e44c25c45746e8ed5e850f03d.tar.gz
PD_SHIFT -> PDRSHIFT
PGOFSET -> PAGE_MASK
-rw-r--r--gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c8
-rw-r--r--gnu/usr.bin/gdb/gdb/freebsd-nat.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c
index b2c0eea..15c9c08 100644
--- a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c
+++ b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: freebsd-nat.c,v 1.7 1995/05/30 04:57:05 rgrimes Exp $
+ $Id: freebsd-nat.c,v 1.8 1996/05/02 09:42:45 phk Exp $
*/
#include <sys/types.h>
@@ -526,7 +526,7 @@ CORE_ADDR addr;
/*
* Read the first-level page table (ptd).
*/
- v = current_ptd + ((unsigned)addr >> PD_SHIFT) * sizeof pte;
+ v = current_ptd + ((unsigned)addr >> PDRSHIFT) * sizeof pte;
if (physrd(fd, v, (char *)&pte, sizeof pte) < 0 || (pte&PG_V) == 0)
return (~0);
@@ -537,7 +537,7 @@ CORE_ADDR addr;
if (physrd(fd, v, (char *) &pte, sizeof(pte)) < 0 || (pte&PG_V) == 0)
return (~0);
- addr = (pte & PG_FRAME) + (addr & PGOFSET);
+ addr = (pte & PG_FRAME) + (addr & PAGE_MASK);
#if 0
printf("vtophys(%x) -> %x\n", oldaddr, addr);
#endif
@@ -605,7 +605,7 @@ kernel_core_file_hook(fd, addr, buf, len)
break;
}
/* we can't read across a page boundary */
- i = min(len, PAGE_SIZE - (addr & PGOFSET));
+ i = min(len, PAGE_SIZE - (addr & PAGE_MASK));
if ((cc = physrd(fd, paddr, cp, i)) <= 0) {
bzero(cp, len);
return (cp - buf);
diff --git a/gnu/usr.bin/gdb/gdb/freebsd-nat.c b/gnu/usr.bin/gdb/gdb/freebsd-nat.c
index b2c0eea..15c9c08 100644
--- a/gnu/usr.bin/gdb/gdb/freebsd-nat.c
+++ b/gnu/usr.bin/gdb/gdb/freebsd-nat.c
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: freebsd-nat.c,v 1.7 1995/05/30 04:57:05 rgrimes Exp $
+ $Id: freebsd-nat.c,v 1.8 1996/05/02 09:42:45 phk Exp $
*/
#include <sys/types.h>
@@ -526,7 +526,7 @@ CORE_ADDR addr;
/*
* Read the first-level page table (ptd).
*/
- v = current_ptd + ((unsigned)addr >> PD_SHIFT) * sizeof pte;
+ v = current_ptd + ((unsigned)addr >> PDRSHIFT) * sizeof pte;
if (physrd(fd, v, (char *)&pte, sizeof pte) < 0 || (pte&PG_V) == 0)
return (~0);
@@ -537,7 +537,7 @@ CORE_ADDR addr;
if (physrd(fd, v, (char *) &pte, sizeof(pte)) < 0 || (pte&PG_V) == 0)
return (~0);
- addr = (pte & PG_FRAME) + (addr & PGOFSET);
+ addr = (pte & PG_FRAME) + (addr & PAGE_MASK);
#if 0
printf("vtophys(%x) -> %x\n", oldaddr, addr);
#endif
@@ -605,7 +605,7 @@ kernel_core_file_hook(fd, addr, buf, len)
break;
}
/* we can't read across a page boundary */
- i = min(len, PAGE_SIZE - (addr & PGOFSET));
+ i = min(len, PAGE_SIZE - (addr & PAGE_MASK));
if ((cc = physrd(fd, paddr, cp, i)) <= 0) {
bzero(cp, len);
return (cp - buf);
OpenPOWER on IntegriCloud