Added code to setup and build the IDT. Updated the Bochs' configuration file to allow break points to be set and did some general code clean-up.
This commit is contained in:
+2
-3
@@ -1,6 +1,7 @@
|
||||
#include "../includes/gdt.h"
|
||||
/* Code taken from http://www.osdever.net/bkerndev/Docs/gdt.htm with some minor tweaks. */
|
||||
|
||||
struct gdt_entry gdt_entries[3];
|
||||
struct gdt gdt_ptr;
|
||||
/* Should be called by main. This will setup the special GDT
|
||||
* pointer, set up the first 3 entries in our GDT, and then
|
||||
* finally call load_gdt() in our assembler file in order
|
||||
@@ -8,8 +9,6 @@
|
||||
* new segment registers */
|
||||
void gdt_install()
|
||||
{
|
||||
struct gdt_entry gdt_entries[3];
|
||||
struct gdt gdt_ptr;
|
||||
/* Setup the GDT pointer and the size of the table */
|
||||
gdt_ptr.size = sizeof(struct gdt_entry) * 3 - 1;
|
||||
gdt_ptr.address = (unsigned int) &gdt_entries;
|
||||
|
||||
Reference in New Issue
Block a user