Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/powerpc/powerpc Pull up revision 1.24 (request...
details: https://anonhg.NetBSD.org/src/rev/1572cb667821
branches: netbsd-1-4
changeset: 469614:1572cb667821
user: he <he%NetBSD.org@localhost>
date: Wed Oct 20 22:56:05 1999 +0000
description:
Pull up revision 1.24 (requested by tsubai):
Make sure we only use addresses inside the available memory region
in pmap_bootstrap.
diffstat:
sys/arch/powerpc/powerpc/pmap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 2a8ff38d8ff3 -r 1572cb667821 sys/arch/powerpc/powerpc/pmap.c
--- a/sys/arch/powerpc/powerpc/pmap.c Wed Oct 20 22:52:20 1999 +0000
+++ b/sys/arch/powerpc/powerpc/pmap.c Wed Oct 20 22:56:05 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.19.2.1 1999/04/16 16:23:25 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.19.2.2 1999/10/20 22:56:05 he Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -367,8 +367,10 @@
/*
* Now page align the start and size of the region.
*/
- s = s & ~PGOFSET;
- e = e & ~PGOFSET;
+ s = round_page(s);
+ e = trunc_page(e);
+ if (e < s)
+ e = s;
sz = e - s;
/*
* Check whether some memory is left here.
Home |
Main Index |
Thread Index |
Old Index