Skip to content
forked from Segfah/KFS

Kernel From Scratch - GDT & Stack

Notifications You must be signed in to change notification settings

louisabricot/KFS2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel From Scratch - GDT & STACK

This is the second step in the Kernel From Scratch journey! It involves creating a Global Descriptor Table (GDT) and integrating it to our kernel.

The GDT must be set at address 0x800 and contain:

  • a kernel code, data and stack
  • a user code, data and stack

Getting started

Prerequisites

To run this project locally, you must have installed:

  • binutils
  • nasm
  • gcc
  • grub-common
  • make
  • xorriso

Installation

  1. Clone this repository
git clone https://github.com/louisabricot/KFS2.git
  1. Build the ISO
cd KFS2
make 
  1. (42 only) You'll need a cross-compiler

  2. Run it with qemu

make run

About

Kernel From Scratch - GDT & Stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 58.1%
  • Makefile 28.2%
  • C 13.7%