Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
e3a2f2ae
提交
e3a2f2ae
4月 06, 2012
创建
作者:
Austin Clements
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make kernel and user syscall signatures match for remaining syscalls
上级
56e43c9b
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
kern_c.h
include/kern_c.h
+3
-3
user.h
include/user.h
+1
-1
async.cc
kernel/async.cc
+2
-2
script.cc
kernel/script.cc
+1
-1
uwq.cc
kernel/uwq.cc
+1
-1
没有找到文件。
include/kern_c.h
浏览文件 @
e3a2f2ae
...
@@ -49,10 +49,10 @@ int sys_bind(int xsock, const struct sockaddr *xaddr, int xaddrlen);
...
@@ -49,10 +49,10 @@ int sys_bind(int xsock, const struct sockaddr *xaddr, int xaddrlen);
int
sys_listen
(
int
,
int
);
int
sys_listen
(
int
,
int
);
int
sys_accept
(
int
,
struct
sockaddr
*
,
int
*
);
int
sys_accept
(
int
,
struct
sockaddr
*
,
int
*
);
ssize_t
sys_pread
(
int
fd
,
void
*
ubuf
,
size_t
count
,
off_t
offset
);
ssize_t
sys_pread
(
int
fd
,
void
*
ubuf
,
size_t
count
,
off_t
offset
);
long
sys_async
(
int
,
size_t
,
off_t
,
u32
,
u32
);
int
sys_async
(
int
,
size_t
,
off_t
,
int
,
int
);
long
sys_script
(
void
*
addr
,
u64
len
,
u64
chunk
);
int
sys_script
(
void
*
addr
,
u64
len
,
u64
chunk
);
int
sys_setfs
(
u64
base
);
int
sys_setfs
(
u64
base
);
long
sys_wqwait
(
void
);
int
sys_wqwait
(
void
);
int
sys_setaffinity
(
int
cpu
);
int
sys_setaffinity
(
int
cpu
);
long
sys_futex
(
const
u64
*
addr
,
int
op
,
u64
val
,
u64
timer
);
long
sys_futex
(
const
u64
*
addr
,
int
op
,
u64
val
,
u64
timer
);
extern
long
(
*
syscalls
[])(
u64
,
u64
,
u64
,
u64
,
u64
);
extern
long
(
*
syscalls
[])(
u64
,
u64
,
u64
,
u64
,
u64
);
...
...
include/user.h
浏览文件 @
e3a2f2ae
...
@@ -31,7 +31,7 @@ int map(void *addr, size_t len);
...
@@ -31,7 +31,7 @@ int map(void *addr, size_t len);
int
unmap
(
void
*
addr
,
size_t
len
);
int
unmap
(
void
*
addr
,
size_t
len
);
int
halt
(
void
);
int
halt
(
void
);
ssize_t
pread
(
int
,
void
*
,
size_t
,
off_t
);
ssize_t
pread
(
int
,
void
*
,
size_t
,
off_t
);
int
async
(
int
,
size_t
,
off_t
,
u32
,
u32
);
int
async
(
int
,
size_t
,
off_t
,
int
,
int
);
int
script
(
void
*
addr
,
u64
len
,
u64
chunk
);
int
script
(
void
*
addr
,
u64
len
,
u64
chunk
);
int
setfs
(
u64
base
);
int
setfs
(
u64
base
);
int
setaffinity
(
int
cpu
);
int
setaffinity
(
int
cpu
);
...
...
kernel/async.cc
浏览文件 @
e3a2f2ae
...
@@ -52,9 +52,9 @@ pread_allocwork(struct inode *ip, size_t count, off_t off,
...
@@ -52,9 +52,9 @@ pread_allocwork(struct inode *ip, size_t count, off_t off,
return
w
;
return
w
;
}
}
long
int
sys_async
(
int
fd
,
size_t
count
,
off_t
off
,
sys_async
(
int
fd
,
size_t
count
,
off_t
off
,
msgid_t
msgid
,
pageid_
t
pageid
)
int
msgid
,
in
t
pageid
)
{
{
sref
<
file
>
f
;;
sref
<
file
>
f
;;
cwork
*
w
;
cwork
*
w
;
...
...
kernel/script.cc
浏览文件 @
e3a2f2ae
...
@@ -28,7 +28,7 @@ script_mmap_work(void *a0, void *a1, void *a2, void *a3)
...
@@ -28,7 +28,7 @@ script_mmap_work(void *a0, void *a1, void *a2, void *a3)
*
donep
+=
1
;
*
donep
+=
1
;
}
}
long
int
sys_script
(
void
*
addr
,
u64
len
,
u64
chunk
)
sys_script
(
void
*
addr
,
u64
len
,
u64
chunk
)
{
{
atomic
<
int
>
done
;
atomic
<
int
>
done
;
...
...
kernel/uwq.cc
浏览文件 @
e3a2f2ae
...
@@ -52,7 +52,7 @@ uwq_trywork(void)
...
@@ -52,7 +52,7 @@ uwq_trywork(void)
return
false
;
return
false
;
}
}
long
int
sys_wqwait
(
void
)
sys_wqwait
(
void
)
{
{
uwq_worker
*
w
=
myproc
()
->
worker
;
uwq_worker
*
w
=
myproc
()
->
worker
;
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论