18 Commits (48cf71b6d49d85629acf8d7aaa8385e41557b9dd)

Author SHA1 Message Date
Andre Richter 4f4e88cfbe
Update binaries generated by newer rustc 6 years ago
Andre Richter 2a4fdc4ece
Add missing comment that triggered build errors in new nightly rust.
Also, update binaries generated by new nightly version:
rustc 1.33.0-nightly (75a369c5b 2019-01-12)
6 years ago
Andre Richter b4ce7d7e1d
Correct some Copyright years 6 years ago
Andre Richter 1b69b5dcc2
Make sure Pagetable arrays are 4 KiB aligned 6 years ago
Andre Richter 40c5760260
Remove not needed features 6 years ago
Andre Richter 90d88f65b6
Streamlining, cleanup, and minor fixes. 6 years ago
Andre Richter 52e0f4c850
mmu: Add more descriptive comments 6 years ago
Andre Richter ad2d0d1182
🎉 Update to Rust 2018 🎉 6 years ago
Albert Cervin 977343de2e Fix a small error in the RO mapping (#9)
The error would cause one page too much to be marked as read only.
Instead, calculate the appropriate page table indices for the read-only
region together with a comment explaining the subtraction by one.
6 years ago
Andre Richter 3e10cd52a1
Add nm target 6 years ago
Andre Richter c004e78e90
Safe implementations of uart::dec() and divisions
The previous implementation of uart::dec() forced the compiler to emit a
software out-of-bounds acces check into the code, bloating it a bit. Prevent
that by using an iterator instead.

Same is true for the ordinary division operator that was used in multiple places
in the benchmark code. Here, the compiler emitted software-checks for divison by
zero. Prevent this by using `checked_div()` where we can implement our own
"panic" handling.
6 years ago
Andre Richter b6fafa6191
Use SP_EL1 as EL1 stack instead of SP_EL0 6 years ago
Andre Richter 2046da5eab
Add objdump target 6 years ago
Andre Richter 3f92aab6e7
Bump extern crates
cortex-a -> 2.2.1
panic-abort -> 0.3.1
6 years ago
Andre Richter 6d135ee441
Makefile: Don't delete kernel8 6 years ago
Andre Richter 37fe055082
Alignment. Binaries from newer Rust version. 6 years ago
Andre Richter 68de789d15
0D: Instruction caching and better benchmark function.
The previous benchmark function had a few flaws. First of all, it wasn't
idiomatic Rust, because we used a loop construct that you would expect in C.
Revamped that by using an iterator. Also, the previous benchmark got heavily
optimized by the compiler, which unrolled the inner loop it into a huge sequence
of consecutive loads and stores, resulting in lots of instructions that needed
to be fetched from DRAM. Additionally, instruction caching was not turned on.

The new code compiles into two tight loops, fully leveraging the power of the I
and D caches, and providing an great showcase.
6 years ago
Andre Richter c65e2e56cd
Add tutorial 0D_cache_performance 6 years ago