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
b7c23627
authored
Sep 29, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added gdt and ldt init to main
parent
8ca1326f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/kern.c
src/kern.c
View file @
b7c23627
...
...
@@ -5,6 +5,8 @@
#include "serial.h"
#include "term.h"
#include "mem.h"
#include "gdt.h"
#include "idt.h"
#if defined(__cplusplus)
extern
"C"
/* Use C linkage for kernel_main. */
...
...
@@ -13,6 +15,8 @@ void kernel_main() {
/* Initialize terminal and serial interfaces */
terminal_initialize
();
serial_init
();
gdt_init
();
idt_init
(
0x0
);
/* Since there is no support for newlines in terminal_putchar
* yet, '\n' will produce some VGA specific character instead.
...
...
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