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
3e6dc6c2
authored
Sep 28, 2015
by
triazo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove C++ checks from kernel main file
parent
b9a2b8b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
14 deletions
src/kern.c
src/kern.c
View file @
3e6dc6c2
#if !defined(__cplusplus)
#include <stdbool.h>
/* C doesn't have booleans by default. */
#endif
#include <stddef.h>
/* Check if the compiler thinks we are targeting the wrong operating system. */
#if defined(__linux__)
#error "You are not using a cross-compiler, you will most certainly run into trouble"
#endif
/* This tutorial will only work for the 32-bit ix86 targets. */
#if !defined(__i386__)
#error "This tutorial needs to be compiled with a ix86-elf compiler"
#endif
#include <stdint.h>
#include "serial.h"
...
...
@@ -37,7 +24,7 @@ void kernel_main() {
// Enable paging of memory. For now there is only one virtual
// memory space defined by page_dir
uint32_t
*
page_dir
;
page_directory_entry
*
page_dir
;
page_dir
=
initiate_directory
();
initiate_page_table
(
page_dir
);
loadPageDirectory
(
page_dir
);
...
...
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