diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-17 04:03:51 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-17 04:03:51 +0200 |
commit | 7fdf8205891496554b18650596334e28dc3366ed (patch) | |
tree | 98e0a65d6290af12f15af69b172bf33210cc3c7a /sys/src/9/pc/memory.c | |
parent | 81954dbf2535b3ae65acabee5f6210d8a002a9a8 (diff) |
pckernel: use constants instead of hardcoding cpuid bits in various places
Diffstat (limited to 'sys/src/9/pc/memory.c')
-rw-r--r-- | sys/src/9/pc/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/memory.c b/sys/src/9/pc/memory.c index f0e2eba32..994a104d5 100644 --- a/sys/src/9/pc/memory.c +++ b/sys/src/9/pc/memory.c @@ -473,9 +473,9 @@ ramscan(ulong maxmem) table = &m->pdb[PDX(KADDR(pa - 4*MB))]; if(nvalid[MemUPA] == (4*MB)/BY2PG) *table = 0; - else if(nvalid[MemRAM] == (4*MB)/BY2PG && (m->cpuiddx & 0x08)) + else if(nvalid[MemRAM] == (4*MB)/BY2PG && (m->cpuiddx & Pse)) *table = (pa - 4*MB)|PTESIZE|PTEWRITE|PTEVALID; - else if(nvalid[MemUMB] == (4*MB)/BY2PG && (m->cpuiddx & 0x08)) + else if(nvalid[MemUMB] == (4*MB)/BY2PG && (m->cpuiddx & Pse)) *table = (pa - 4*MB)|PTESIZE|PTEWRITE|PTEUNCACHED|PTEVALID; else{ *table = map|PTEWRITE|PTEVALID; |