Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
82537b71
提交
82537b71
9月 04, 2006
创建
作者:
rtm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
nits
上级
97c74a3a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
13 行删除
+11
-13
README
README
+10
-12
kalloc.c
kalloc.c
+1
-1
没有找到文件。
README
浏览文件 @
82537b71
xv6 is a re-implementation of Unix Version 6 (v6), which was developed
by Dennis Ritchie and Ken Thompson. xv6 follows the structure and
style of v6, but is implemented for a modern x86-based multiprocessor
using ANSI C.
xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix
Version 6 (v6). xv6 loosely follows the structure and style of v6,
but is implemented for a modern x86-based multiprocessor using ANSI C.
xv6 is inspired by the following work by Lions about Unix version 6:
xv6 is inspired by John Lions' Commentary on UNIX 6th Edition (Peer
to Peer Communications; ISBN: 1-57398-013-7; 1st edition (June 14,
2000)). See also http://pdos.csail.mit.edu/6.828/2006/v6.html, which
provides pointers to on-line resources for v6.
- Lions' Commentary on UNIX' 6th Edition, John Lions, Peer to Peer
Communications; ISBN: 1-57398-013-7; 1st edition (June 14, 2000). See
also http://pdos.csail.mit.edu/6.828/2006/v6.html, which provides
pointers to on-line resources for v6.
Code was used from the following sources:
JOS (asm.h, elf.h, mmu.h, bootasm.S, ide.c, and others)
xv6 borrows code from the following sources:
JOS (asm.h, elf.h, mmu.h, bootasm.S, ide.c, console.c, and others)
Plan 9 (bootother.S, mp.h, mp.c, ioapic.h, lapic.c)
FreeBSD (ioapic.c)
NetBSD (console.c)
The following people made contributions:
Russ Cox (context switching, locking)
...
...
kalloc.c
浏览文件 @
82537b71
...
...
@@ -38,7 +38,7 @@ kinit(void)
initlock
(
&
kalloc_lock
,
"kalloc"
);
start
=
(
char
*
)
&
end
;
start
=
(
char
*
)
(((
uint
)
start
+
PAGE
)
&
~
(
PAGE
-
1
));
mem
=
256
;
//
XXX
mem
=
256
;
//
assume 256 pages of RAM
cprintf
(
"mem = %d
\n
"
,
mem
*
PAGE
);
kfree
(
start
,
mem
*
PAGE
);
}
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论