commit | c481fd412e4ed1d24dc046bfb1e7b2570a88c1bb | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Thu Apr 29 11:44:34 2021 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri May 07 13:36:22 2021 -0400 |
tree | 83822db737768d2bca28a7a92b296248d92769fe | |
parent | 771a643051649d7bc13c6fc3b84f6e610a21e888 [diff] |
x86: mmu: don't decrement z_free_page_count in reserving code In z_mem_manage_init(), z_free_page_count is only manipulated after all reserved pages are marked, and will reflect the actual number of page frames being added to the free page frame list. Manipulating z_free_page_count before this is going to mess up the accounting, so remove the code to decrement z_free_page_count in arch_reserved_pages_update() under x86. Signed-off-by: Daniel Leung <daniel.leung@intel.com>