summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/mtrr.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-07 20:04:19 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-07 20:04:19 +0100
commit2b4706b6624bfd0281fce6c384804bb8458dab09 (patch)
treeba8933caf280337667a61e5e991387ec8f727452 /sys/src/9/pc/mtrr.c
parentfc7f6f8e99d9db307883448a49a1e3d6243d04cf (diff)
pc64: dont reuse mtrr slots that are above 4GB
we used to override/reuse mtrr slots over 4GB as the kernel wasnt able to use that memory. pc64 can.
Diffstat (limited to 'sys/src/9/pc/mtrr.c')
-rw-r--r--sys/src/9/pc/mtrr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/9/pc/mtrr.c b/sys/src/9/pc/mtrr.c
index b40bf0de6..77f754cb0 100644
--- a/sys/src/9/pc/mtrr.c
+++ b/sys/src/9/pc/mtrr.c
@@ -295,8 +295,7 @@ mtrr(uvlong base, uvlong size, char *tstr)
for(i = 0; i < vcnt; i++){
mtrrget(&mtrr, i);
mok = mtrrdec(&mtrr, &mp, &msize, &mtype);
- /* reuse any entry for addresses above 4GB */
- if(!mok || mp == base && msize == size || mp >= (1LL<<32)){
+ if(!mok || mp == base && msize == size){
slot = i;
break;
}