Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
e8d05a2a
提交
e8d05a2a
3月 05, 2012
创建
作者:
Silas Boyd-Wickizer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use -iquote for xv6 headers when compiling for Linux
上级
9c295417
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
18 行删除
+20
-18
xdu.cc
bin/xdu.cc
+2
-3
reducer.hh
include/reducer.hh
+2
-0
wq.hh
include/wq.hh
+13
-13
wq.cc
lib/wq.cc
+1
-1
Makefrag.wq
user/Makefrag.wq
+2
-1
没有找到文件。
bin/xdu.cc
浏览文件 @
e8d05a2a
...
...
@@ -10,10 +10,9 @@
#include <stddef.h>
#include <errno.h>
typedef
uint64_t
u64
;
#include "include/wq.hh"
#include "wq.hh"
#include "reducer.hh"
#include "user/dirit.hh"
#include "include/percpu.hh"
#include "include/reducer.hh"
#define ST_SIZE(st) (st).st_size
#define ST_ISDIR(st) S_ISDIR((st).st_mode)
#define BSIZ 256
...
...
include/reducer.hh
浏览文件 @
e8d05a2a
#include "percpu.hh"
template
<
typename
T
>
struct
reducer_opadd
{
...
...
include/wq.hh
浏览文件 @
e8d05a2a
#pragma once
#if defined(LINUX)
#include <stdlib.h>
#include <assert.h>
#include <atomic>
#define xmalloc(n) malloc(n)
#define xfree(p, sz) free(p)
#elif defined(XV6_KERNEL)
#define xmalloc(n) kmalloc(n)
#define xfree(p, sz) kmfree(p, sz)
#else
#warning "Unknown wq implementation"
#endif
#define WQSIZE 8192
class
work
;
...
...
@@ -40,4 +27,17 @@ struct cwork : public work {
void
*
arg4
;
};
#if defined(LINUX)
#include <stdlib.h>
#include <assert.h>
#include <atomic>
#define xmalloc(n) malloc(n)
#define xfree(p, sz) free(p)
#elif defined(XV6_KERNEL)
#define xmalloc(n) kmalloc(n)
#define xfree(p, sz) kmfree(p, sz)
#else
#warning "Unknown wq implementation"
#endif
#include "wqfor.hh"
lib/wq.cc
浏览文件 @
e8d05a2a
#if defined(LINUX)
#include "user/wqlinux.hh"
#include "
include/
percpu.hh"
#include "percpu.hh"
#elif defined(XV6_KERNEL)
#include "wqkernel.hh"
#include "percpu.hh"
...
...
user/Makefrag.wq
浏览文件 @
e8d05a2a
...
...
@@ -2,7 +2,8 @@ NCXXFLAGS = -static -g -MD -m64 -O3 -Wall -Werror -DHW_$(HW) \
-fno-builtin -fno-strict-aliasing -fno-omit-frame-pointer \
-fms-extensions -mcx16 -mno-red-zone -std=c++0x \
-Wno-sign-compare -fno-exceptions -fno-rtti -fcheck-new \
-I. -include param.h -include include/compiler.h
-iquote . -iquote include \
-include param.h -include include/compiler.h
$(O)/user/%.o: lib/%.cc
@echo " CXX $@"
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论