Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
70a895f6
提交
70a895f6
6月 12, 2006
创建
作者:
rtm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xx
上级
55e95b16
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
81 行增加
和
5 行删除
+81
-5
Makefile
Makefile
+2
-5
dot-bochsrc
dot-bochsrc
+79
-0
没有找到文件。
Makefile
浏览文件 @
70a895f6
...
...
@@ -4,6 +4,7 @@ CC = i386-jos-elf-gcc
LD
=
i386-jos-elf-ld
OBJCOPY
=
i386-jos-elf-objcopy
OBJDUMP
=
i386-jos-elf-objdump
CFLAGS
=
-nostdinc
-I
.
-O
xv6.img
:
bootblock kernel
dd
if
=
/dev/zero
of
=
xv6.img
count
=
10000
...
...
@@ -22,9 +23,5 @@ kernel : $(OBJS)
$(LD)
-Ttext
0x100000
-e
main
-o
kernel
$(OBJS)
$(OBJDUMP)
-S
kernel
>
kernel.asm
%.o
:
%.c
$(CC)
-nostdinc
-I
.
-O
-c
-o
$@
$<
clean
:
rm
-f
bootmain.o bootasm.o bootblock.o bootblock
rm
-f
kernel main.o kernel.asm xv6.img
rm
-f
*
.o bootblock kernel kernel.asm xv6.img
dot-bochsrc
0 → 100755
浏览文件 @
70a895f6
###############################################################
# bochsrc file for pragmalinux disk image.
#
# This file is provided both as .bochsrc and bochsrc so
# that it works on win32 and unix.
###############################################################
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage: file=/usr/local/BIOS-bochs-latest, address=0xf0000
vgaromimage: file=/usr/local/VGABIOS-lgpl-latest
# Use the parallel port as an alternate console,
# so that we can run Bochs without the GUI.
parport1: enabled=1, file="/dev/stdout"
#parport1: enabled=1, file="/dev/null"
# uncommenting one of the following lines can be used to specify your
# preferred display. (defaults to x11 for bochs-bin and to term for
# bochs-term)
#display_library: x
# nogui can still be useful because you can see the output on the
# parport1 from above
#display_library: nogui
# if using "term", you probably want to change the parport output to
# go to a file or /dev/null
#display_library: term
# disk images
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
# ata0-master: type=disk, mode=flat, path="./obj/kern/bochs.img", cylinders=200, heads=16, spt=63
ata0-master: type=disk, mode=flat, path="./xv6.img", cylinders=100, heads=10, spt=10
# ata0-slave: type=disk, mode=flat, path="./obj/fs/fs.img", cylinders=200, heads=16, spt=63
# choose the boot disk.
boot: c
# where do we send log messages?
log: bochs.log
#log: /dev/stdout
# disable the mouse
mouse: enabled=0
#debug: action=ignore
info: action=ignore
error: action=report
panic: action=ask
# this changes how often the screen is refreshed. Lowering it will
# make your screen update more often, which will slow down emulation,
# but will make the display respond faster. It can also be useful if
# you machine is panicing and the most recent screen changes are not
# displayed before it panics.
vga_update_interval: 100000
# changing ips can lead to dramatically different performance. It
# also affects how quickly time passes in the emulated machine.
# Setting it too low can cause clock interrupts to happen too rapidly.
# Setting it too high will make the whole machine feel sluggish.
# (Note: with using clock sync=realtime, the ips parameter is not
# really used, although it is still used for vga updates)
ips: 2000000
# This means that time in the emulated machine is the same as
# realtime. This can be scary because running the same simulation
# twice in a row can lead to different results (because they started
# at different times, for instance). If you want to use non-real
# time, then use sync=none.
clock: sync=realtime, time0=local
# clock: sync=none, time0=946681200 # jan 1, 2000
keyboard_serial_delay: 10
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论