Skip to content
/ MMU Public

Implementation of Memory Management Unit at application level

License

Notifications You must be signed in to change notification settings

lomuto/MMU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Implementation of Memory Management Unit at application level

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages