memDesc: change ref as unsigned
This commit is contained in:
parent
ef78de447f
commit
4a61d7f3b7
@ -136,6 +136,7 @@ int unrefPhyPage(paddr_t addr)
|
|||||||
if (!mem) {
|
if (!mem) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
assert(mem->ref >0);
|
||||||
mem->ref--;
|
mem->ref--;
|
||||||
if (mem->ref == 0) {
|
if (mem->ref == 0) {
|
||||||
allocatedPage--;
|
allocatedPage--;
|
||||||
|
@ -11,7 +11,7 @@ extern uint32_t __ld_kernel_end;
|
|||||||
|
|
||||||
struct memDesc {
|
struct memDesc {
|
||||||
paddr_t phy_addr;
|
paddr_t phy_addr;
|
||||||
long ref;
|
unsigned long ref;
|
||||||
struct memDesc *next, *prev;
|
struct memDesc *next, *prev;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user