Catch up with "physical memory" sysctl change.
(MFi386: rev 1.608)
This commit is contained in:
parent
aeadeefcdf
commit
8c8cb52737
@ -160,6 +160,7 @@ static int grab_mcontext(struct thread *, mcontext_t *, int);
|
|||||||
void asm_panic(char *);
|
void asm_panic(char *);
|
||||||
|
|
||||||
long Maxmem = 0;
|
long Maxmem = 0;
|
||||||
|
long realmem = 0;
|
||||||
|
|
||||||
struct pmap ofw_pmap;
|
struct pmap ofw_pmap;
|
||||||
extern int ofmsr;
|
extern int ofmsr;
|
||||||
@ -197,6 +198,7 @@ cpu_startup(void *dummy)
|
|||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1048576);
|
ptoa(Maxmem) / 1048576);
|
||||||
|
realmem = Maxmem;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
|
@ -160,6 +160,7 @@ static int grab_mcontext(struct thread *, mcontext_t *, int);
|
|||||||
void asm_panic(char *);
|
void asm_panic(char *);
|
||||||
|
|
||||||
long Maxmem = 0;
|
long Maxmem = 0;
|
||||||
|
long realmem = 0;
|
||||||
|
|
||||||
struct pmap ofw_pmap;
|
struct pmap ofw_pmap;
|
||||||
extern int ofmsr;
|
extern int ofmsr;
|
||||||
@ -197,6 +198,7 @@ cpu_startup(void *dummy)
|
|||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1048576);
|
ptoa(Maxmem) / 1048576);
|
||||||
|
realmem = Maxmem;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user