1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 14:48:08 +00:00

Merge pull request #592 from zidarsk8/allocater-typo-fix

Fix allocater typo
This commit is contained in:
0xAX 2018-05-01 14:08:49 +02:00 committed by GitHub
commit 17d74ce160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,7 @@ for (; addr < end; addr = next) {
} }
``` ```
First of all here we find next entry of the `Page Global Directory` for the given address and if it is greater than `end` of the given memory region, we set it to `end`. After this we allocater a new page with our `x86_mapping_info` callback that we already considered above and call the `ident_p4d_init` function. The `ident_p4d_init` function will do the same, but for low-level page directories (`p4d` -> `pud` -> `pmd`). First of all here we find next entry of the `Page Global Directory` for the given address and if it is greater than `end` of the given memory region, we set it to `end`. After this we allocate a new page with our `x86_mapping_info` callback that we already considered above and call the `ident_p4d_init` function. The `ident_p4d_init` function will do the same, but for low-level page directories (`p4d` -> `pud` -> `pmd`).
That's all. That's all.

View File

@ -118,4 +118,5 @@ Thank you to all contributors:
* [kuritonasu](https://github.com/kuritonasu/) * [kuritonasu](https://github.com/kuritonasu/)
* [Miles Frain](https://github.com/milesfrain) * [Miles Frain](https://github.com/milesfrain)
* [Horace Heaven](https://github.com/horaceheaven) * [Horace Heaven](https://github.com/horaceheaven)
* [Miha Zidar](https://github.com/zidarsk8)
* [Ivan Kovnatsky](https://github.com/sevenfourk) * [Ivan Kovnatsky](https://github.com/sevenfourk)