TacOS
0.2
|
#include <types.h>
Aller au code source de ce fichier.
Structures de données | |
struct | page_directory_entry |
Page Directory Entry. Plus de détails... | |
struct | page_table_entry |
Page Table Entry. Plus de détails... | |
Macros | |
#define | _PAGINATION_KERNEL_TOP 0x40000000 |
Fonctions | |
void | pagination_setup () |
Activation de la pagination et initialisation. Plus de détails... | |
void | pagination_init_page_directory (struct page_directory_entry *pd) |
Initialise un repertoire de page. Plus de détails... | |
void | pagination_init_page_directory_copy_kernel_only (struct page_directory_entry *pd, paddr_t pd_paddr) |
vaddr_t | get_page_table_vaddr (int index_page) |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
#define _PAGINATION_KERNEL_TOP 0x40000000 |
Emplacement de mémoire virtuelle réservé au kernel : 0 -> 1gio
vaddr_t get_page_table_vaddr | ( | int | index_page | ) |
Retourne l'emplacement en mémoire virtuelle reservé pour la table de page correspondant à cet identifiant
void pagination_init_page_directory | ( | struct page_directory_entry * | pd | ) |
Initialise un repertoire de page vide.
pd | le repertoire de page à initialiser. |
void pagination_setup | ( | ) |
Cette fonction s'occupe d'activer la pagination. (identity mapping entre autre qui permet de pas briser le lien addr phys et addr lineaire au début)