pc64: use unsigned long for kmapindex and mmu counts avoiding signed integer division
This commit is contained in:
parent
cd92790c50
commit
63879193e7
2 changed files with 6 additions and 6 deletions
|
@ -141,9 +141,9 @@ struct PMMU
|
||||||
MMU* mmutail;
|
MMU* mmutail;
|
||||||
MMU* kmaphead;
|
MMU* kmaphead;
|
||||||
MMU* kmaptail;
|
MMU* kmaptail;
|
||||||
int kmapcount;
|
ulong kmapcount;
|
||||||
int kmapindex;
|
ulong kmapindex;
|
||||||
int mmucount;
|
ulong mmucount;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -182,7 +182,7 @@ struct Mach
|
||||||
|
|
||||||
u64int mmumap[4]; /* bitmap of pml4 entries for zapping */
|
u64int mmumap[4]; /* bitmap of pml4 entries for zapping */
|
||||||
MMU* mmufree; /* freelist for MMU structures */
|
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 */
|
ulong ticks; /* of the clock since boot time */
|
||||||
Label sched; /* scheduler wakeup */
|
Label sched; /* scheduler wakeup */
|
||||||
|
|
|
@ -27,8 +27,8 @@ static struct {
|
||||||
Lock;
|
Lock;
|
||||||
MMU *free;
|
MMU *free;
|
||||||
|
|
||||||
int nalloc;
|
ulong nalloc;
|
||||||
int nfree;
|
ulong nfree;
|
||||||
} mmupool;
|
} mmupool;
|
||||||
|
|
||||||
/* level */
|
/* level */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue