Skip to content

build Unix-like tiny Operating System from scratch

License

Notifications You must be signed in to change notification settings

lance-e/loong-OS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

参考《操作系统真象还原》和Linux早期源码 ,从零到一实现一个类Unix小型操作系统。

特性:

  • 进程线程管理:实现了进程和线程的创建,切换和调度。
  • 段页式内存管理:基于位图实现了虚拟内存和物理内存的管理。
  • 锁机制:基于互斥信号量实现了同步机制,支持多进程和多线程环境。
  • 中断机制:通过初始化IDT,注册相应中断处理函数,实现中断机制。
  • 引导程序:将操作系统从硬盘加载到内存,完成操作系统的部分初始化。
  • 输入输出系统:实现了键盘的驱动程序,(TODO:硬盘的驱动程序)
  • 文件系统:TODO
  • 系统交互:TODO

使用指南:

1.克隆到本地

git clone https://github.com/lance-e/loong-OS.git

2.编译

make build

3.将内核写入镜像文件

make hd

4.运行

使用bochs虚拟机运行操作系统 (注意:不支持arch架构)

bin/bochs

贡献:

欢迎pr或者issue,来提出对本项目的改进意见或bug修复。

About

build Unix-like tiny Operating System from scratch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages