Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
7abf49d2
提交
7abf49d2
9月 03, 2006
创建
作者:
kaashoek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove duplication
don't use the same name for two different pieces of code
上级
801affcd
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
13 行增加
和
17 行删除
+13
-17
asm.h
asm.h
+2
-2
bootasm.S
bootasm.S
+3
-3
bootother.S
bootother.S
+3
-3
console.c
console.c
+1
-0
ide.c
ide.c
+1
-0
picirq.c
picirq.c
+1
-0
traps.h
traps.h
+2
-0
x86.h
x86.h
+0
-9
没有找到文件。
asm.h
浏览文件 @
7abf49d2
...
...
@@ -2,10 +2,10 @@
// macros to create x86 segments from assembler
//
#define SEG_NULL \
#define SEG_NULL
ASM
\
.word 0, 0; \
.byte 0, 0, 0, 0
#define SEG(type,base,lim) \
#define SEG
_ASM
(type,base,lim) \
.word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \
.byte (((base) >> 16) & 0xff), (0x90 | (type)), \
(0xC0 | (((lim) >> 28) & 0xf)), (((base) >> 24) & 0xff)
...
...
bootasm.S
浏览文件 @
7abf49d2
...
...
@@ -87,9 +87,9 @@ spin: jmp spin # ..but in case it does, spin
.p2align 2 # force 4 byte alignment
gdt:
SEG_NULL # null seg
SEG(STA_X|STA_R, 0x0, 0xffffffff) # code seg
SEG(STA_W, 0x0, 0xffffffff) # data seg
SEG_NULL
ASM
# null seg
SEG
_ASM
(STA_X|STA_R, 0x0, 0xffffffff) # code seg
SEG
_ASM
(STA_W, 0x0, 0xffffffff) # data seg
gdtdesc:
.word 0x17 # sizeof(gdt) - 1
...
...
bootother.S
浏览文件 @
7abf49d2
...
...
@@ -70,9 +70,9 @@ protcseg:
.p2align 2 # force 4 byte alignment
gdt:
SEG_NULL # null seg
SEG(STA_X|STA_R, 0x0, 0xffffffff) # code seg
SEG(STA_W, 0x0, 0xffffffff) # data seg
SEG_NULL
ASM
# null seg
SEG
_ASM
(STA_X|STA_R, 0x0, 0xffffffff) # code seg
SEG
_ASM
(STA_W, 0x0, 0xffffffff) # data seg
gdtdesc:
.word 0x17 # sizeof(gdt) - 1
...
...
console.c
浏览文件 @
7abf49d2
#include "types.h"
#include "x86.h"
#include "traps.h"
#include "defs.h"
#include "spinlock.h"
#include "dev.h"
...
...
ide.c
浏览文件 @
7abf49d2
...
...
@@ -8,6 +8,7 @@
#include "proc.h"
#include "defs.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
#define IDE_BSY 0x80
...
...
picirq.c
浏览文件 @
7abf49d2
...
...
@@ -2,6 +2,7 @@
#include "types.h"
#include "x86.h"
#include "traps.h"
#include "defs.h"
// I/O Addresses of the two 8259A programmable interrupt controllers
...
...
traps.h
浏览文件 @
7abf49d2
...
...
@@ -27,6 +27,8 @@
#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET
#define IRQ_KBD 1
#define IRQ_IDE 14
#define IRQ_TIMER 18
#define IRQ_ERROR 19
#define IRQ_SPURIOUS 31
x86.h
浏览文件 @
7abf49d2
...
...
@@ -151,12 +151,3 @@ struct trapframe {
ushort
ss
;
ushort
padding4
;
};
#define MAX_IRQS 16 // Number of IRQs
#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET
#define IRQ_KBD 1
#define IRQ_IDE 14
#define IRQ_ERROR 19
#define IRQ_SPURIOUS 31
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论