-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zap identity mappings after init (#64)
* pmm: export display_frames_count() Signed-off-by: Pawel Wieczorkiewicz <[email protected]> * smp: use dedicated variable for CR3 Do not keep final, global cr3 variable in .data.init section. When init sections are being reclaimed, this breaks pagetables interface. Instead, for SMP AP booting, use dedicated ap_cr3 variable, which can be reclaimed after SMP initialization. Signed-off-by: Pawel Wieczorkiewicz <[email protected]> * smp: minor cleanup * Rename smp_init() to init_smp() to follow naming convention * Put boot_cpu() and init_smp() into the .text.init section Signed-off-by: Pawel Wieczorkiewicz <[email protected]> * pmm: zap boot mappings after initialization * PMM: - Add reclaim_frame() non-static wrapper over add_frame(); it adds a frame being reclaimed to the list of free frames. * Compiler: - Add IS_INIT_SECTION() macro; it decides, if section is an init section, based on its name. * Setup: - Modify zap_boot_mappings() to iterate over all defined memory regions and unmap plus reclaim all frames belonging to identity mapped init sections. Additionally, zero-out non-text sections. Signed-off-by: Pawel Wieczorkiewicz <[email protected]> Co-authored-by: Bjoern Doebel <[email protected]>
- Loading branch information
Showing
10 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters