# OS-OSLabs **Repository Path**: HduersIT/OS-OSLabs ## Basic Information - **Project Name**: OS-OSLabs - **Description**: OperatingSystemLabs_南京大学操作系统实验 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-07-29 - **Last Updated**: 2025-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OSLabs
printfprintf的格式化输出FORK、SLEEP、EXIT系统调用SEM_INIT、SEM_POST、SEM_WAIT、SEM_DESTROY系统调用+lab1
|---+bootloader
| |---boot.h #磁盘I/O接口
| |---boot.c #加载磁盘上的用户程序
| |---start.s #引导程序
| |---Makefile
|---+utils
| |---genboot.pl #生成MBR
|---+app
| |---app.s #用户程序
| |---Makefile
|---Makefile
+Lab2,3,4
|---+bootloader #引导程序
| |---...
|---+utils
| |---genBoot.pl #生成引导程序
| |---genKernel.pl #生成内核程序
|---+kernel
| |---+include #头文件
| |---+kernel #内核代码
| | |---doIrq.S #中断处理
| | |---i8259.c #重设主从8259A
| | |---idt.c #初始化中断描述表
| | |---irqHandle.c #中断处理函数
| | |---kvm.c #初始化 GDT 和加载用户程序
| | |---serial.c #初始化串口输出
| |---+lib
| |---main.c #主函数
| |---Makefile
|---+app #用户代码
| |---main.c #主函数
| |---Makefile
|---+lib #库函数
| |---lib.h
| |---types.h
| |---syscall.c #系统调用入口
|---Makefile