北京大学操作系统实习JOSlab2实验报告.pdfVIP

  • 3
  • 0
  • 约7.03万字
  • 约 33页
  • 2024-07-17 发布于广东
  • 举报

北京大学操作系统实习JOSlab2实验报告.pdf

JOS

zhangchitc@

March29,2011

Contents

1Introduction2

2PhysicalPageManagement2

2.1Physicalpageanditsdatastructure................2

2.2Physicalmemorylayout.......................4

3VirtualMemory9

3.1Virtual,Linear,andPhysicalAddresses..............10

3.2Referencecounting..........................10

3.3PageTableManagement.......................13

4KernelAddressSpace20

4.1PermissionsandFaultIsolation...................20

4.2InitializingtheKernelAddressSpace................20

4.3AddressSpaceLayoutAlternatives.................31

1

,

1Introduction

JOS

/zyshao/OSEngineering.

htmlab1

2PhysicalPageManagement

Exercise1.Inthefilekern/pmap.c,youmustimplementcodeforthe

followingfunctions.

boot_alloc()

page_init()

page_alloc()

page_free()

Youalsoneedtoaddsomecodetoi386_vm_init()inpmap.c,asindicated

bycommentsthere.Fornow,justaddthecode

文档评论(0)

1亿VIP精品文档

相关文档