Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
013a2bac
提交
013a2bac
10月 26, 2011
创建
作者:
Silas Boyd-Wickizer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A better panic.
上级
4c1ef7b0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
Makefile
Makefile
+1
-0
console.c
console.c
+11
-4
sysproc.c
sysproc.c
+3
-1
没有找到文件。
Makefile
浏览文件 @
013a2bac
...
@@ -44,6 +44,7 @@ OBJS = \
...
@@ -44,6 +44,7 @@ OBJS = \
string.o
\
string.o
\
syscall.o
\
syscall.o
\
sysfile.o
\
sysfile.o
\
sysproc.o
\
uart.o
\
uart.o
\
vm.o
\
vm.o
\
trap.o
\
trap.o
\
...
...
console.c
浏览文件 @
013a2bac
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include "cpu.h"
#include "cpu.h"
#include "kernel.h"
#include "kernel.h"
#include "spinlock.h"
#include "spinlock.h"
#include "x86.h"
#include <stdarg.h>
#include <stdarg.h>
...
@@ -173,11 +174,17 @@ puts(const char *s)
...
@@ -173,11 +174,17 @@ puts(const char *s)
void
__attribute__
((
noreturn
))
void
__attribute__
((
noreturn
))
panic
(
const
char
*
s
)
panic
(
const
char
*
s
)
{
{
puts
(
"panic: "
);
cli
();
puts
(
s
);
cons
.
locking
=
0
;
puts
(
"
\n
"
);
cprintf
(
"cpu%d: panic: "
,
mycpu
()
->
id
);
cprintf
(
s
);
cprintf
(
"
\n
"
);
extern
void
sys_halt
();
sys_halt
();
for
(;;);
for
(;;)
;
}
}
void
void
...
...
sysproc.c
浏览文件 @
013a2bac
#include "types.h"
#include "types.h"
#include "x86.h"
#include "x86.h"
#include "
defs
.h"
#include "
kernel
.h"
#include "param.h"
#include "param.h"
#include "memlayout.h"
#include "memlayout.h"
#include "mmu.h"
#include "mmu.h"
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include "queue.h"
#include "queue.h"
#include "proc.h"
#include "proc.h"
#if 0
int
int
sys_fork(void)
sys_fork(void)
{
{
...
@@ -143,6 +144,7 @@ sys_unmap(void)
...
@@ -143,6 +144,7 @@ sys_unmap(void)
sti();
sti();
return 0;
return 0;
}
}
#endif
int
int
sys_halt
(
void
)
sys_halt
(
void
)
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论