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/devarch.c | |
parent | 81954dbf2535b3ae65acabee5f6210d8a002a9a8 (diff) |
pckernel: use constants instead of hardcoding cpuid bits in various places
Diffstat (limited to 'sys/src/9/pc/devarch.c')
-rw-r--r-- | sys/src/9/pc/devarch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/devarch.c b/sys/src/9/pc/devarch.c index 20dc87923..fc407fa6a 100644 --- a/sys/src/9/pc/devarch.c +++ b/sys/src/9/pc/devarch.c @@ -809,9 +809,9 @@ cpuidentify(void) * are supported enable them in CR4 and clear any other set extensions. * If machine check was enabled clear out any lingering status. */ - if(m->cpuiddx & (Pge|Mce|0x8)){ + if(m->cpuiddx & (Pge|Mce|Pse)){ cr4 = 0; - if(m->cpuiddx & 0x08) + if(m->cpuiddx & Pse) cr4 |= 0x10; /* page size extensions */ if(p = getconf("*nomce")) nomce = strtoul(p, 0, 0); |