GithubHelp home page GithubHelp logo

nctuos's Introduction

nctuOS

A tiny OS that used for course OSDI in National Chiao Tung University, Computer Science Dept.

This OS only supports x86

Lab 7

In this lab, you will learn about how file system implement in an OS.

You can leverage grep to find out where to fill up to finish this lab.

$ grep -R "TODO: Lab7"

To run this kernel

$ make
$ make qemu

To debug

$ make debug

Lab 6

In this lab, you will learn about how to make os support symmertric multiprocessing (SMP) and simple scheduling policy for SMP.

Source Tree

kernel/*: Includes all the file implementation needed by kernel only. lib/*: Includes libraries that should be in user space. inc/*: Header files for user. user/*: Files for user program. boot/*: Files for booting the kernel.

You can leverage grep to find out where to fill up to finish this lab.

$ grep -R TODO .

To run this kernel

$ make
$ make qemu

To debug

$ make debug

Lab 5

In this lab, you will learn about process management, basic scheduling and system calls.

In our design, each process contains a page directory so that each of them can have full memory addressing space.

For each process, there are several attributes that are necessary for kernel to manage the process easily, you can reference kernel/task.h for more detail.

Source Tree

kernel/*: Includes all the file implementation needed by kernel only. lib/*: Includes libraries that should be in user space. inc/*: Header files for user. user/*: Files for user program. boot/*: Files for booting the kernel.

You can leverage grep to find out where to fill up to finish this lab.

$ grep -R TODO .

To run this kernel

$ make
$ make qemu

To debug

$ make debug

Modifications to be made

  • lib/syscall.c implement the interfaces of system calls for user program to use.
  • kernel/task.h to open interfaces of implementation of system calls for kernel/syscall.c
  • kernel/task.c implement task_create, task_free, sys_kill, sys_fork, and task_init
  • kernel/syscall.c implement system calls
  • kernel/trap_entry.S implement trap handler interface for system call
  • kernel/mem.c implement setupkvm used by each process creation
  • kernel/sched.c implement scheduler
  • kernel/timer.c implement timer_handler to support sleep

Lab 4

In this lab, you will learn about memory management in x86.

You can leverage grep to find out where to fill up to finish this lab.

$ grep -R TODO .

To run this kernel

$ make
$ qemu -hda kernel.img -monitor stdio
  • Modify kernel/mem.c to implement the memory management functions
  • Modify kernel/trap.c and kernel/trap_entry.S to setup IDT for pagefault

Acknowledgement

This is forked and modified from MIT's Xv6

nctuos's People

Contributors

ponsheng avatar iclr2021-pareco avatar tony1223yu avatar rudychin avatar dani4310 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.