diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-02 20:23:25 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-02 20:23:25 +0200 |
commit | 295acd7e0d711cfd2c7c6a1bd45d00c9727f5786 (patch) | |
tree | a1e02ca9b5d210447cee12bf0dfafa8848574a33 /sys/lib/python/idlelib/ScriptBinding.py | |
parent | c77b3ba143da491f020a1c2871a57d10d5b8bf8f (diff) |
kernel: get rid of physical page bank array and use conf.mem[] instead
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).
Diffstat (limited to 'sys/lib/python/idlelib/ScriptBinding.py')
0 files changed, 0 insertions, 0 deletions