hw4_xv6_intro

hw4_xv6_intro - Homework: intro to xv6 This lecture is the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework: intro to xv6 This lecture is the introduction to xv6, our re-implementation of Unix v6. Read the source code in the assigned files. You won't have to understand the details yet; we will focus on how the first user-level process comes into existence after the computer is turned on. Hand-In Procedure for Sep 18 You are to turn in this homework during lecture. Please write up your answers to the exercises below and hand them in to a 6.828 staff member at the beginning of lecture. Assignment : Download xv6 and expand the tar ball: Download xv6_rev0.zip and xv6.pdf from the assignments section page. Extract the folder xv6 from xv6_rev0.zip Build xv6: $ cd xv6 $ make cc -o mkfs mkfs.c gcc -fno-builtin -O2 -Wall -MD -c -o usertests.o usertests.c gcc -fno-builtin -O2 -Wall -MD -c -o ulib.o ulib.c ... $ Find the address of the main0 function by looking in kernel.asm : sh-3.00$ grep main0 kernel.asm 001015b0 <main0>: 1015f0: 7e ee jle 1015e0 <main0+0x30> 1016a7: 74 22 je 1016cb <main0+0x11b> 1016d0: eb dc jmp 1016ae <main0+0xfe> sh-3.00$ In this case, the address is 001015b0 . Note that this address may be different on
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

hw4_xv6_intro - Homework: intro to xv6 This lecture is the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online