Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
cd354f1d
提交
cd354f1d
3月 07, 2012
创建
作者:
Nickolai Zeldovich
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
different "all" make targets based on HW
上级
3d00ccd2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
17 行增加
和
7 行删除
+17
-7
Makefile
Makefile
+5
-1
README
README
+2
-1
Makefrag
kernel/Makefrag
+1
-2
cc.h
net/arch/cc.h
+1
-1
Makefrag
tools/Makefrag
+1
-1
Makefrag.user
user/Makefrag.user
+4
-1
Makefrag.wq
user/Makefrag.wq
+2
-0
crange_arch.hh
user/crange_arch.hh
+1
-0
没有找到文件。
Makefile
浏览文件 @
cd354f1d
...
...
@@ -26,7 +26,7 @@ NM = $(TOOLPREFIX)nm
OBJCOPY
=
$(TOOLPREFIX)
objcopy
STRIP
=
$(TOOLPREFIX)
strip
INCLUDES
=
-
I
include
-Istdinc
-I
$(QEMUSRC)
-include
param.h
-include
include/compiler.h
INCLUDES
=
-
iquote
include
-Istdinc
-I
$(QEMUSRC)
-include
param.h
-include
include/compiler.h
COMFLAGS
=
-static
-g
-MD
-m64
-O3
-Wall
-Werror
-DHW_
$(HW)
-DXV6
\
-fno-builtin
-fno-strict-aliasing
-fno-omit-frame-pointer
-fms-extensions
\
-mno-sse
-mcx16
-mno-red-zone
$(INCLUDES)
...
...
@@ -36,6 +36,7 @@ CXXFLAGS := $(COMFLAGS) -std=c++0x -Wno-sign-compare -fno-exceptions -fno-rtti -
ASFLAGS
=
-Iinclude
-I
$(O)
/include
-m64
-gdwarf-2
-MD
-DHW_
$(HW)
-include
param.h
LDFLAGS
=
-m
elf_x86_64
ALL
:=
all
:
include
net/Makefrag
...
...
@@ -113,3 +114,6 @@ reboot:
clean
:
rm
-fr
$(O)
all
:
$(ALL)
README
浏览文件 @
cd354f1d
...
...
@@ -55,4 +55,5 @@
* user-space version
$ apt-get install libjemalloc-dev
$ make HW=user o.user/utest
$ make HW=user
$ ./o.user/utest
kernel/Makefrag
浏览文件 @
cd354f1d
...
...
@@ -51,8 +51,7 @@ OBJS = \
OBJS := $(addprefix $(O)/kernel/, $(OBJS))
KERN = $(O)/kernel.elf
all: $(KERN)
ALL += $(KERN)
$(O)/kernel/%.o: CFLAGS+=-mcmodel=kernel -DXV6_KERNEL
$(O)/kernel/%.o: CXXFLAGS+=-mcmodel=kernel -DXV6_KERNEL
...
...
net/arch/cc.h
浏览文件 @
cd354f1d
#ifndef LWIP_ARCH_CC_H
#define LWIP_ARCH_CC_H
#include
<types.h>
#include
"types.h"
void
lwip_cprintf
(
const
char
*
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
lwip_panic
(
const
char
*
,
...)
__noret__
__attribute__
((
format
(
printf
,
1
,
2
)));
...
...
tools/Makefrag
浏览文件 @
cd354f1d
...
...
@@ -6,4 +6,4 @@ $(O)/tools/perf-report: tools/perf-report.cc include/sampler.h
$(Q)mkdir -p $(@D)
g++ -std=c++0x -m64 -Werror -Wall -I. -o $@ $<
all:
$(O)/tools/perf-report
ALL +=
$(O)/tools/perf-report
user/Makefrag.user
浏览文件 @
cd354f1d
CXXFLAGS := -
I
user $(filter-out -nostdinc++ -Istdinc, $(CXXFLAGS)) -msse
CXXFLAGS := -
iquote
user $(filter-out -nostdinc++ -Istdinc, $(CXXFLAGS)) -msse
$(O)/utest: $(O)/kernel/crange.o \
$(O)/kernel/gc.o \
...
...
@@ -10,3 +10,6 @@ $(O)/utest: $(O)/kernel/crange.o \
.PRECIOUS: $(O)/user/%.o
-include $(O)/user/*.d
ALL := $(O)/utest
user/Makefrag.wq
浏览文件 @
cd354f1d
...
...
@@ -22,3 +22,5 @@ $(O)/%: $(O)/user/%.o $(O)/user/wq.o
.PRECIOUS: $(O)/user/%.o
-include $(O)/user/*.d
ALL := $(O)/xdu $(O)/xls
user/crange_arch.hh
浏览文件 @
cd354f1d
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <assert.h>
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论