]> git.lizzy.rs Git - plan9front.git/commit
e820: handle duplicate and overlapping e820 entries, handle overflows
authorcinap_lenrek <cinap_lenrek@gmx.de>
Mon, 16 Sep 2013 21:36:06 +0000 (23:36 +0200)
committercinap_lenrek <cinap_lenrek@gmx.de>
Mon, 16 Sep 2013 21:36:06 +0000 (23:36 +0200)
commitc24dd620f91a2ef84b88d2536a469e5358df1b8d
tree51000f01d840939cee5f44de460b0a8d91e29ab7
parentc3a8711d12c4b6c56767fe8ef07d96d6ef2978e9
e820: handle duplicate and overlapping e820 entries, handle overflows

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.
sys/src/9/pc/memory.c