Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.15 KB

File metadata and controls

64 lines (34 loc) · 1.15 KB

KU_MMU

Implementation of Memory Management Unit at application level
Assignment in Konkuk Univ. Operating System class 2021 by Prof. Hyun-Wook Jin


Introduction

Due to the requirements of assignment, every variables and functions are written in single file: ku_mmu.h. Which is a huge violation of modern software architecture :(


Application-level implementation of Memory Management Unit.

Converts given virtual address with PID to physical address in input.txt

  • 8-bit addressing: 256B of address space
  • Page size: 4B
  • PDE/PTE: 1B

Data Structures

PCB List

pcb_list


Memory Free list

pmem_list

swap_list

Init status

init


Mapped memory

mapping


Swap out

  • Swap space has free memory (default)

default_swap

  • Swap space is full

swap_space_is_full


Run

$ ku_cpu <input_file> <pmem_size> <swap_size>