summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/memory.c
AgeCommit message (Collapse)Author
2014-11-20pc, pc64: preserve last KB of conventional memory (might contain bios tables)cinap_lenrek
we add new function convmemsize() that returns the size of *usable* conventional memory that does some sanity checking and reserves the last KB below the top of memory pointer. this avoids lowraminit() overriding potential bios tables and sigsearch() going off the rails looking for tables at above 640K.
2014-11-15pc: get rid of fixed 8MB memory map (now dynamically between 4 to 16 MB ↵cinap_lenrek
depending on kernel size) we now do mapping of KZERO to ROUND(end, 4*MB) where end needs not to be above 16MB. this allows for bigger kernels.
2014-11-02pc, pc64: more sanity checking for lowraminit()cinap_lenrek
2014-10-12pc: sanity check bda value in lowraminit() to avoid overflow with eficinap_lenrek
2013-09-16e820: handle duplicate and overlapping e820 entries, handle overflowscinap_lenrek
new algorithm: sort entries by top address first. then for each entry we use: base = max(base, last) so we'll never map the same addresses twice.
2012-08-24add unified sigsearch() function to look for bios data structurescinap_lenrek
replace the various functions that searched for bios data structures by a single sigsearch() one in pc/memory.c that will probe the various bios data areas. also, a new checksum() function was added that is to be used to validate the structures found.
2012-08-17pckernel: use constants instead of hardcoding cpuid bits in various placescinap_lenrek
2012-08-06memory.c: remove unused xmapupa mapcinap_lenrek
2012-06-21e820: support new formatcinap_lenrek
2012-06-21e820: check for newer *e820= variable (old e820= might get removed in the ↵cinap_lenrek
future)
2011-11-05memory: e820 cleanupcinap_lenrek
2011-11-05remove realmode and e820 code from kernelcinap_lenrek
2011-05-149boot: add e820 scan to bootloadercinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen