# learn_xv6_steps **Repository Path**: chenhao/learn_xv6_steps ## Basic Information - **Project Name**: learn_xv6_steps - **Description**: learn xv6 stepbystep - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-13 - **Last Updated**: 2025-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README ref: - [一步步编写xv6操作系统](https://space.bilibili.com/3546605479266885/upload/video) 建议: 1. 实验时, IDE打开具体一个step, 而不是父目录learn_xv6_steps, 避免代码跳转到其他step的同名文件, 引发乌龙事件 1. 如果通过copy step方式创建新step, 建议在新step中先执行`make clean` 原因: **修改xxx.h后再执行`make qemu`发现xxx.o没有重新编译** ## steps - 001 : 从汇编跳转到C代码 - 002 : 串口初始化并输出内容 - 003 : 从M模式切换到S模式 - 004 : 启用时钟中断 - 005 : spinlock - 006 : 内存管理+启用分页 - 007 : PLIC - 008 : 磁盘读写 - 009 : 内核进程调度 ## ps 1. 退出qemu模拟器: kill qemu-system-riscv64/使用Ctrl+a, 然后按 x, 利用QEMU 模拟器本身的退出快捷键来退出