Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
7bb73cdb
提交
7bb73cdb
8月 27, 2007
创建
作者:
rsc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
nits
上级
8e670053
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
3 行删除
+5
-3
bootother.S
bootother.S
+2
-2
defs.h
defs.h
+1
-1
x86.h
x86.h
+2
-0
没有找到文件。
bootother.S
浏览文件 @
7bb73cdb
...
...
@@ -15,8 +15,8 @@
#
# This code is identical to bootasm.S except:
# - it does not need to enable A20
# - it uses
0(start-4)
for the %esp
# - it jumps to
0(start-8)
instead of calling cmain
# - it uses
the address at start-4
for the %esp
# - it jumps to
the address at start-8
instead of calling cmain
.set PROT_MODE_CSEG, 0x8 # kernel code segment selector
.set PROT_MODE_DSEG, 0x10 # kernel data segment selector
...
...
defs.h
浏览文件 @
7bb73cdb
...
...
@@ -23,7 +23,7 @@ void kbd_intr(void);
void
panic
(
char
*
)
__attribute__
((
noreturn
));
// exec.c
int
exec
(
char
*
,
char
**
);
int
exec
(
char
*
,
char
**
);
// file.c
struct
file
*
filealloc
(
void
);
...
...
x86.h
浏览文件 @
7bb73cdb
...
...
@@ -5,6 +5,7 @@ static inline uchar
inb
(
ushort
port
)
{
uchar
data
;
asm
volatile
(
"in %1,%0"
:
"=a"
(
data
)
:
"d"
(
port
));
return
data
;
}
...
...
@@ -91,6 +92,7 @@ static inline void
cpuid
(
uint
info
,
uint
*
eaxp
,
uint
*
ebxp
,
uint
*
ecxp
,
uint
*
edxp
)
{
uint
eax
,
ebx
,
ecx
,
edx
;
asm
volatile
(
"cpuid"
:
"=a"
(
eax
),
"=b"
(
ebx
),
"=c"
(
ecx
),
"=d"
(
edx
)
:
"a"
(
info
));
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论