diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-07 21:13:36 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-07 21:13:36 +0200 |
commit | 63879193e7e0d271daa215b02d6c4f64c98dc6ae (patch) | |
tree | a2c817ca2459b9a71a90b054104f5cc931ae6dbb /sys/src/9/pc64 | |
parent | cd92790c50433ee99fc3a3b3a95792e1daf2aed1 (diff) |
pc64: use unsigned long for kmapindex and mmu counts avoiding signed integer division
Diffstat (limited to 'sys/src/9/pc64')
-rw-r--r-- | sys/src/9/pc64/dat.h | 8 | ||||
-rw-r--r-- | sys/src/9/pc64/mmu.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/src/9/pc64/dat.h b/sys/src/9/pc64/dat.h index 3a9d63768..538a74da0 100644 --- a/sys/src/9/pc64/dat.h +++ b/sys/src/9/pc64/dat.h @@ -141,9 +141,9 @@ struct PMMU MMU* mmutail; MMU* kmaphead; MMU* kmaptail; - int kmapcount; - int kmapindex; - int mmucount; + ulong kmapcount; + ulong kmapindex; + ulong mmucount; }; /* @@ -182,7 +182,7 @@ struct Mach u64int mmumap[4]; /* bitmap of pml4 entries for zapping */ MMU* mmufree; /* freelist for MMU structures */ - int mmucount; /* number of MMU structures in freelist */ + ulong mmucount; /* number of MMU structures in freelist */ ulong ticks; /* of the clock since boot time */ Label sched; /* scheduler wakeup */ diff --git a/sys/src/9/pc64/mmu.c b/sys/src/9/pc64/mmu.c index 4d896ce4f..34d1c28a2 100644 --- a/sys/src/9/pc64/mmu.c +++ b/sys/src/9/pc64/mmu.c @@ -27,8 +27,8 @@ static struct { Lock; MMU *free; - int nalloc; - int nfree; + ulong nalloc; + ulong nfree; } mmupool; /* level */ |