摘要:
sleep Implement the UNIX program sleep for xv6; your sleep should pause for a user-specified number of ticks. A tick is a notion of time defined by th 阅读全文
摘要:
窗口1作为xv6的运行窗口。 make CPUS=1 qemu-gdb 窗口2作为gdb调试窗口。 gdb-multiarch kernel/kernel # 进入gdb后执行 set confirm off set architecture riscv:rv64 set riscv use-com 阅读全文
摘要:
在git push时遇到如下问题: kex_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. Please make sure you have 阅读全文
摘要:
set -e: 表示此命令后,当某命令返回值非0时,将出错。如果是非交互环境,将直接退出,不再执行后续命令 set +e: set -e的反向操作,恢复bash shell的默认行为,命令失败后继续执行后续命令 set -u: (set -o nounset), 表示此命令之后,当某命令使用了未定义 阅读全文
摘要:
c++规定默认参数必须从函数参数的右边向左边使用,如下: 正确: void fun1(int a, int b=10); void fun2(int a, int b=10, int c=20); 错误: void fun3(int a=5, int b, int c); void fun4(int 阅读全文