Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
883ad59c
authored
Oct 19, 2015
by
triazo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Redo how kern.c sets up paging
parent
fd39faed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
src/kern.c
src/kern.c
View file @
883ad59c
...
@@ -41,10 +41,9 @@ void kernel_main(multiboot_info* mbt, uint32_t magic)
...
@@ -41,10 +41,9 @@ void kernel_main(multiboot_info* mbt, uint32_t magic)
// Enable paging of memory. For now there is only one virtual
// Enable paging of memory. For now there is only one virtual
// memory space defined by page_dir
// memory space defined by page_dir
page_directory_entry
*
page_dir
;
page_directory_entry
*
kern_page_dir
;
page_dir
=
initiate_directory
();
kern_page_dir
=
mem_init_kern_tables
(
mbt
->
mmap_addr
,
mbt
->
mmap_addr
+
mbt
->
mmap_length
);
initiate_page_table
(
page_dir
);
loadPageDirectory
(
kern_page_dir
);
loadPageDirectory
(
page_dir
);
enablePaging
();
enablePaging
();
serial_writestring
(
"Finished Initilizing memory
\n
"
);
serial_writestring
(
"Finished Initilizing memory
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment