summaryrefslogtreecommitdiff
path: root/sys/src/9/port/xalloc.c
AgeCommit message (Collapse)Author
2021-04-02kernel: get rid of physical page bank array and use conf.mem[] insteadcinap_lenrek
We can take advantage of the fact that xinit() allocates kernel memory from conf.mem[] banks always at the beginning of a bank, so the separate palloc.mem[] array can be eleminated as we can calculate the amount of non-kernel memory like: upages = cm->npage - (PGROUND(cm->klimit - cm->kbase)/BY2PG) for the number of reserved kernel pages, we provide the new function: ulong nkpages(Confmem*) This eleminates the error case of running out of slots in the array and avoids wasting memory in ports that have simple memory configurations (compared to pc/pc64).
2015-06-19kernel: ignore last page at the top of virtual kernel address space for xalloc()cinap_lenrek
avoding kernel address -BY2PG because of end pointer wrapping to zero.
2014-12-18kernel: print addresses in hex and sizes in decimal in xallocsummarycinap_lenrek
2014-08-16kernel: xinit() use ulong for page counts, cleanupcinap_lenrek
2014-08-07pc, pc64: make pc kaddr() check reject -KZERO address (thanks aiju)cinap_lenrek
2014-02-01kernel: fix pointer truncation in xspanalloc(), fix format printscinap_lenrek
2014-01-21kernel: fix ulong abuse in xalloccinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen