]> git.corax.cc Git - corax/commit
kernel/arch: Split pg_init() function into smaller, more comprehensible functions
authorMatthias Kruk <m@m10k.eu>
Sat, 1 Aug 2020 09:21:27 +0000 (18:21 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 1 Aug 2020 09:21:27 +0000 (18:21 +0900)
commit0b32186d16d0cca38db270041b425a3e0e63b3b0
treef71792d5d79addfca47a698507ef41cf09837b65
parentb6ab58ba18ad9ed2d62242ef0e8eea45875b0415
kernel/arch: Split pg_init() function into smaller, more comprehensible functions

- Split the pg_init() function into several functions
  - the _identity_map() function, for creating the identity map
  - the _pae_identity_map() function, for the actual work on PAE systems
  - the _legacy_identity_map() function, for the actual work on non-PAE systems
  - the _clear_available_frames() function, to clear usable frames from the frame map
- Add comments explaining all of the new functions
- Expand existing comments where necessary
kernel/arch/paging.c