
In this lecture, we will write our first program in assembly language to boot the virtual machine and real machine from usb flash drive.
In this video, we will read the loader from disk into memory.
We will check to see if the processor supports long mode.
In this video, service E820 is used to get memory map info.
In this video, we will learn how to print characters on the screen in text mode.
In this lecture, we will switch to protected mode and set up environment for long mode.
The operating system is designed to run in 64-bit mode and all the modules we will build are running in this mode.
In this lecture, we will see how to write the kernel using assembly and c language.
Welcome to write your own 64-bit operating system course.
This course teaches you how to build a simple operating system from scratch. It covers basics about the x86 architecture and low-level programming. In this course, we will take you through the process of building a small working system step by step.
The first part of the course teaches all you need to know (processor modes, paging, exceptions and interrupts handling, etc.) before you can build the kernel on the x86 architecture. In this part, we will see how to prepare for mode switching. We switch from real mode to protected mode and then jump to long mode. Our kernel is running in 64-bit mode. After we switch to 64-bit mode, we will see how to handle exceptions and interrupts, how to switch between kernel mode and user mode.
The second part of the course teaches you how to build kernel modules such as processes, memory management, interrupt handling, etc. In this part, we will see how to write a keyboard driver and a console, how to interact with the OS kernel using the console. After finishing this part, you should know how to write user programs and make them run in your own operating system.
In this course you will learn:
How to build a simple operating system for the x86 architecture.
Understand real mode
Understand protected mode and long mode
How to handle interrupts and exceptions in the 64-bit mode
How to write OS kernel with the assembly code and C code
Be able to write print function to print characters on the screen
Be able to build a memory manager using x86 paging mechanism
How to write timer handler for the process manager
How to build a process manager to schedule processes and change them among different states (sleep, ready, killed)
How to implement system call module to make user programs running in the system
Write a keyboard driver (PS/2)
Write a simple console and interact with OS kernel using commands
Be able to write a simple file system module which supports reading fat16 system.
At the end of the course, you should be able to develop your own 64-bit operating system.