Use vmem_size() only on i386 systems and in the kernel.
This commit is contained in:
parent
798226a839
commit
7bca8f1926
|
@ -3437,7 +3437,7 @@ arc_init(void)
|
|||
/* Start out with 1/8 of all memory */
|
||||
arc_c = physmem * PAGESIZE / 8;
|
||||
|
||||
#if defined(__i386)
|
||||
#if defined(_KERNEL) && defined(__i386)
|
||||
/*
|
||||
* On architectures where the physical memory can be larger
|
||||
* than the addressable space (intel in 32-bit mode), we may
|
||||
|
|
Loading…
Reference in New Issue