Skip to content

caoaolong/csos-teach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

174 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Coding Soul Operating System


Videos

Video

Basic & Functions

Basic

  • Boot
  • BootLoader
  • GDT
  • IDT
    • 实时时钟
    • 计数器
    • 串口通信
    • 实时时钟
    • 蜂鸣器
    • 键盘
  • Protection Mode
  • Memory Paging
    • 4K内存分页
    • 4M内存分页
  • System Call

Function

  • 内存管理
    • 内存分页
    • 堆栈分配
  • 进程管理
    • 进程调度
    • 进程隔离
  • 特权级切换
    • TSS
  • 设备管理
    • TTY设备
    • 磁盘设备
  • 文件系统
    • FAT16文件系统
    • DEV虚拟文件系统
  • Shell程序
    • ANSI转义序列
    • 简易Shell解析器

Usage

重新全量编译

make all

使用Bochsdbg运行

目前只在实模式可以在bochs中运行

make bochs

使用Qemu运行

make qemu

创建磁盘

make master.img

PS D:\project\csos-teach> bximage
========================================================================
                                bximage
  Disk Image Creation / Conversion / Resize and Commit Tool for Bochs
         $Id: bximage.cc 14091 2021-01-30 17:37:42Z sshwarts $
========================================================================

1. Create new floppy or hard disk image
2. Convert hard disk image to other format (mode)
3. Resize hard disk image
4. Commit 'undoable' redolog to base image
5. Disk image info

0. Quit

Please choose one [0] 1

Create image

Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd] hd

What kind of image should I create?
Please type flat, sparse, growing, vpc or vmware4. [flat] flat

Choose the size of hard disk sectors.
Please type 512, 1024 or 4096. [512] 512

Enter the hard disk size in megabytes, between 10 and 8257535
[10] 32

What should be the name of the image?
[c.img] master.img  

Creating hard disk image 'test.img' with CHS=65/16/63 (sector size = 512)

The following line should appear in your bochsrc:
  ata0-master: type=disk, path="test.img", mode=flat
(The line is stored in your windows clipboard, use CTRL-V to paste)

Press any key to continue

Links

Others

About me

About

手写x86单核操作系统源码

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors