Skip to content

2over/my-multicore-x64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

手写x64多核

shell功能展示

image

  • clear: clear the screen. example: clear
  • tasks : view all tasks. example: tasks
  • task count : create tasks. example: task 2
  • cpus: view all CPU info. example: cpus
  • run: all cpus grab the task. example: run
  • cpu index: specify a CPU. example: cpu 1
  • r [gdtr|idtr]: read gdtr | idtr register. example: r gdtr
  • gdt: view all segments of the CPU. example: gdt
  • idt: view all interrupt handling table. example: idt
  • mm: view memory info. example: mm
  • mmu addr: simulate the working principle of MMU. example: mmu 0

整体架构图

image

x64内存结构

image

分页机制

image

段式内存管理

image

页式内存管理

image

逻辑地址、线性地址、物理地址之间的转换关系

image

物理内存管理

image

10-10-12分页

po_diagram

2-9-9-12分页

po_diagram (1)

4-level-paging

image

CPU响应中断的流程

image

image

About

手写多核x64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors