aboutsummaryrefslogtreecommitdiff
path: root/include/09.paging
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-03-06 12:55:49 +0100
committerAleksa Vučković <aleksav013@gmail.com>2022-03-06 12:55:49 +0100
commit598d1c86a5952d3e5d1d2175fdff3f76918a3ce9 (patch)
tree339798884e00d7dd6208911290c0ffb3d5fb344f /include/09.paging
parent03035c98b4ba3297b837e96080e78e0aac1e86db (diff)
font size change
Diffstat (limited to 'include/09.paging')
-rw-r--r--include/09.paging/paging.c4
-rw-r--r--include/09.paging/paging7.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/09.paging/paging.c b/include/09.paging/paging.c
index 9c4875a..4aba4af 100644
--- a/include/09.paging/paging.c
+++ b/include/09.paging/paging.c
@@ -33,8 +33,8 @@ void set_pt(size_t num,uint32_t address)
{
// As the address is page aligned, it will always leave 12 bits zeroed.
// Those bits are used by the attributes ;)
- page_table[num][i] = (address + i * 0x1000) | 3; // attributes:
- supervisor level, read/write, present.
+ page_table[num][i] = (address + i * 0x1000) | 3;
+ // attributes: supervisor level, read/write, present.
}
page_directory[num] = ((uint32_t)page_table[num]) | 3;
diff --git a/include/09.paging/paging7.c b/include/09.paging/paging7.c
index 1b9c590..ff39df2 100644
--- a/include/09.paging/paging7.c
+++ b/include/09.paging/paging7.c
@@ -3,6 +3,6 @@
{
// As the address is page aligned, it will always leave 12 bits zeroed.
// Those bits are used by the attributes ;)
- page_table[num][i] = (address + i * 0x1000) | 3; // attributes:
- supervisor level, read/write, present.
+ page_table[num][i] = (address + i * 0x1000) | 3;
+ // attributes: supervisor level, read/write, present.
}