mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 05:55:27 +01:00
Use PAGE_SIZE instead of NBPG
This commit is contained in:
parent
d71458ee72
commit
0e51b8b85d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15529
@ -36,7 +36,7 @@
|
|||||||
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id$";
|
"$Id: mcount.c,v 1.5 1995/12/30 07:01:50 bde Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -107,7 +107,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
|||||||
*/
|
*/
|
||||||
if (frompci >= p->textsize) {
|
if (frompci >= p->textsize) {
|
||||||
if (frompci + p->lowpc
|
if (frompci + p->lowpc
|
||||||
>= (fptrint_t)(VM_MAXUSER_ADDRESS + UPAGES * NBPG))
|
>= (fptrint_t)(VM_MAXUSER_ADDRESS + UPAGES * PAGE_SIZE))
|
||||||
goto done;
|
goto done;
|
||||||
frompci = (fptrint_t)user - p->lowpc;
|
frompci = (fptrint_t)user - p->lowpc;
|
||||||
if (frompci >= p->textsize)
|
if (frompci >= p->textsize)
|
||||||
|
Loading…
Reference in New Issue
Block a user