Comment conversion
This commit is contained in:
parent
eb6dd2be2c
commit
1825a89ab5
1 changed files with 6 additions and 4 deletions
10
kernel/vm.c
10
kernel/vm.c
|
@ -12,7 +12,7 @@ extern char etext[]; // kernel.ld sets this to end of kernel code.
|
||||||
|
|
||||||
extern char trampoline[]; // trampoline.S
|
extern char trampoline[]; // trampoline.S
|
||||||
|
|
||||||
// Make a direct-map page table for the kernel.
|
/** Make a direct-map page table for the kernel. */
|
||||||
pagetable_t
|
pagetable_t
|
||||||
kvmmake(void)
|
kvmmake(void)
|
||||||
{
|
{
|
||||||
|
@ -49,15 +49,17 @@ kvmmake(void)
|
||||||
return kpgtbl;
|
return kpgtbl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the one kernel_pagetable
|
/** Initialize the one kernel_pagetable */
|
||||||
void
|
void
|
||||||
kvminit(void)
|
kvminit(void)
|
||||||
{
|
{
|
||||||
kernel_pagetable = kvmmake();
|
kernel_pagetable = kvmmake();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Switch h/w page table register to the kernel's page table,
|
/**
|
||||||
// and enable paging.
|
* Switch h/w page table register to the kernel's page table,
|
||||||
|
* and enable paging.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
kvminithart()
|
kvminithart()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue