Skip to content

πŸ–₯️ A minimal operating system for Mips Malta

Notifications You must be signed in to change notification settings

pkrll/Armadillo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Armadillo

OSPP (1DT096) 2018 - Project iota

Armadillo is a very simple operating system for the MIPS Malta board, created as a group project in Operating systems and process oriented programming (1DT096), spring 2018, Uppsala university.

Prerequisites

Getting started

The Makefile includes a bunch of rules to build, compile, run and test the system.

Compile

To compile the project, use compile. This compiles and creates object files in the obj directory, but does not build a binary.

> make compile
Compilation done...
Link and build

To create a binary, use the rule make build. This will, if necessary, compile and link the object files.

> make build
Linking the kernel...
Run

You can run Armadillo using the QEMU emulator.

> make run
Running armadillo.elf on qemu with flags: -M malta -m 256 -serial stdio
Tests

Unit tests are included. Run them with test.

> make test
...
All tests passed!
Debug

Debugging Armadillo requires GDB. Start by running the OS in debug mode, and then send the job to the background before starting GDB:

> make debug
[ctrl+z]
> bg
> make gdb

Structure

.
β”œβ”€β”€ Doxyfile
β”œβ”€β”€ Makefile
β”œβ”€β”€ README.md
β”œβ”€β”€ bin
β”œβ”€β”€ docs
β”œβ”€β”€ guidelines
β”‚   β”œβ”€β”€ git.md
β”‚   └── styleguide.md
β”œβ”€β”€ meta
β”‚   β”œβ”€β”€ gruppkontrakt.md
β”‚   β”œβ”€β”€ medlemmar.md
β”‚   └── meetings
β”œβ”€β”€ obj
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ common
β”‚   β”‚   β”œβ”€β”€ k_rand.c
β”‚   β”‚   β”œβ”€β”€ memory.c
β”‚   β”‚   β”œβ”€β”€ queue.c
β”‚   β”‚   β”œβ”€β”€ stack.c
β”‚   β”‚   β”œβ”€β”€ stdio.c
β”‚   β”‚   └── stdlib.c
β”‚   β”œβ”€β”€ include
β”‚   β”‚   β”œβ”€β”€ common
β”‚   β”‚   β”‚   β”œβ”€β”€ k_rand.h
β”‚   β”‚   β”‚   β”œβ”€β”€ math.h
β”‚   β”‚   β”‚   β”œβ”€β”€ memory.h
β”‚   β”‚   β”‚   β”œβ”€β”€ processes.h
β”‚   β”‚   β”‚   β”œβ”€β”€ queue.h
β”‚   β”‚   β”‚   β”œβ”€β”€ stack.h
β”‚   β”‚   β”‚   β”œβ”€β”€ stdint.h
β”‚   β”‚   β”‚   β”œβ”€β”€ stdio.h
β”‚   β”‚   β”‚   └── stdlib.h
β”‚   β”‚   β”œβ”€β”€ kernel
β”‚   β”‚   β”‚   β”œβ”€β”€ dispatcher.h
β”‚   β”‚   β”‚   β”œβ”€β”€ exceptions.h
β”‚   β”‚   β”‚   └── pcb.h
β”‚   β”‚   └── mips
β”‚   β”‚       β”œβ”€β”€ adresses.h
β”‚   β”‚       β”œβ”€β”€ bitmasks.h
β”‚   β”‚       └── registers.h
β”‚   β”œβ”€β”€ kernel
β”‚   β”‚   β”œβ”€β”€ boot.S
β”‚   β”‚   β”œβ”€β”€ context_switch.S
β”‚   β”‚   β”œβ”€β”€ dispatcher.c
β”‚   β”‚   β”œβ”€β”€ exceptions.S
β”‚   β”‚   β”œβ”€β”€ kernel.c
β”‚   β”‚   β”œβ”€β”€ pcb.c
β”‚   β”‚   β”œβ”€β”€ processes.c
β”‚   β”‚   β”œβ”€β”€ rand.S
β”‚   β”‚   └── timer.S
β”‚   └── linker.ld
└── tests
    β”œβ”€β”€ include
    β”‚   β”œβ”€β”€ minunit
    β”‚   β”‚   └── unit.h
    β”‚   β”œβ”€β”€ test_dispatcher.h
    β”‚   β”œβ”€β”€ test_memory.h
    β”‚   β”œβ”€β”€ test_stack.h
    β”‚   └── test_stdlib.h
    β”œβ”€β”€ kernel
    β”‚   β”œβ”€β”€ test_boot.S
    β”‚   β”œβ”€β”€ test_exception.S
    β”‚   └── test_kernel.c
    β”œβ”€β”€ linker.ld
    β”œβ”€β”€ test_dispatcher.c
    β”œβ”€β”€ test_main.c
    β”œβ”€β”€ test_memory.c
    β”œβ”€β”€ test_stack.c
    └── test_stdlib.c

Documentation

Here you'll find the documentation for Armadillo, along with some useful links.

About

πŸ–₯️ A minimal operating system for Mips Malta

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published