pingpong #include"kernel/types.h"#include"kernel/stat.h"#include"user/user.h"intmain(intargc,char*argv[]){intpipefd[2],pid;if(pipe(pipefd)==-1){fprintf(2,"pipe error");exit(1);}pid=fork();if(pid==0){read(pipefd[0],&pid,sizeofpid);fprintf(1,"%d: received ping\n",getpid...
启动流程 boot loader 加载xv6内核进入内存 CPU执行在kernal/entry.S中定义的机器码_entry The RISC-V starts with paging hardware disabled: virtual addresses map directly to physical addresses. loader将xv6内核到物理地址0x80000000中,避免覆盖0x0:0x80000000中的I/O设备 _entry为stact.c设置stack0,同时将栈指...
xv6-riscv-lab MIT 6.S081 / 2020年秋季实验室 进度 Lab1 Lab2 Lab3 Lab4陷阱 Lab5延迟分配 Lab6写时复制 Lab7多线程 Lab8锁 Lab9文件系统 Lab10 mmap Lab11网络驱动程序 文件 Lab1 Lab2 Lab3点赞(0) 踩踩(0) 反馈 所需:1 积分 电信网络下载 ...
MIT-6.S081的课程源代码xv6-labs-2020 (0)踩踩(0) 所需:1积分 /ClassNotes0721 2025-03-04 22:46:14 积分:1 mixue-mp 2025-03-04 22:45:24 积分:1 json-adapter 2025-03-04 22:37:29 积分:1 用例优先级随机生成器 2025-03-04 22:36:49 ...
I-E-E-E/xv6-labs-2020main Branches 0 Tags Code Folders and filesLatest commit Google-Brain implemented cow~ 5f31507· May 14, 2022 History1,315 Commits conf COW lab Oct 1, 2020 kernel implemented cow~ May 14, 2022 mkfs separate source into kernel/ user/ mkfs/ Jun 11, 2019...
Breadcrumbs xv6-labs-2020/ README.mdLatest commit Cannot retrieve latest commit at this time. HistoryHistory File metadata and controls Preview Code Blame 2 lines (2 loc) · 248 Bytes Raw 运行环境为Ubuntu 20.04,apt install qemu-system-misc安装的qemu-system-riscv64版本(4.2.1)能成功运行,但...
1 https://gitee.com/nhfn/xv6-labs-2020.git git@gitee.com:nhfn/xv6-labs-2020.git nhfn xv6-labs-2020 xv6-labs-2020深圳市奥思网络科技有限公司版权所有 Git 大全 Git 命令学习 CopyCat 代码克隆检测 APP与插件下载 Gitee Reward Gitee 封面人物 GVP 项目 Gitee 博客 Gitee 公益计划 Gitee ...
isprime(prime)); if(prime > maxNum) return; printf("prime %d\n",prime); write(pipeline[1],&prime,sizeof(prime)); // pass current prime to next call if(fork() == 0){ // child logic, call for next prime printPrime(pipeline,maxNum); } wait(0); return; } int main(int argc...
MIT6.S081 2020 实验. Contribute to gary-cloud/xv6-labs-2020 development by creating an account on GitHub.
Labs of MIT 6.s081. Contribute to waruto210/xv6-labs-2020 development by creating an account on GitHub.