Skip to content

SUSTech CS302 Operating System Project 1: Pintos Threads with auto-decreasing priority.

License

Notifications You must be signed in to change notification settings

yanxiangyi/Pintos-Project1-Mac

Repository files navigation

Pintos on Mac

Pintos Mac - Pintos on Mac

Contact:

Jeremy Mao(maojie[AT]me.com or yujie.mao[AT]intel.com)

Jin Suk Park(jinmel[AT]postech.ac.kr)

Homepage: https://github.com/maojie/pintos_mac

Overview

Pintos initial code to successfully compile and simulate on Mac using QEMU i386 simulator. For more documentation, refer to Pintos Documentation Homepage

Prerequisites

  1. Mac OS X Mavericks or higher
  2. Homebrew

Setting up your environment

  1. Install QEMU. Make sure you are using QEMU 2.0.0 or greater or Pintos may not shut down correctly.
brew install qemu
  1. Install i386-elf-gcc and i386-elf-gdb cross compiler toolchain.
brew install homebrew/versions/gcc49
brew install altkatz/gcc_cross_compilers/i386-elf-gcc
brew install altkatz/gcc_cross_compilers/i386-elf-gdb

Changes to pintos source

  • devices/shutdown.c:shutdown_power_off

  • Make.config

    • Set compiler to i386-elf-gcc.
  • threads/Make.vars

    • Set SIMULATOR=--qemu to force qemu on make check.

About

SUSTech CS302 Operating System Project 1: Pintos Threads with auto-decreasing priority.

Resources

License

Stars

Watchers

Forks

Packages

No packages published