Use vmem_size() only on i386 systems and in the kernel.

This commit is contained in:
Brian Behlendorf 2009-03-16 11:27:26 -07:00
parent 798226a839
commit 7bca8f1926
1 changed files with 1 additions and 1 deletions

View File

@ -3437,7 +3437,7 @@ arc_init(void)
/* Start out with 1/8 of all memory */ /* Start out with 1/8 of all memory */
arc_c = physmem * PAGESIZE / 8; arc_c = physmem * PAGESIZE / 8;
#if defined(__i386) #if defined(_KERNEL) && defined(__i386)
/* /*
* On architectures where the physical memory can be larger * On architectures where the physical memory can be larger
* than the addressable space (intel in 32-bit mode), we may * than the addressable space (intel in 32-bit mode), we may