Commit Graph

128 Commits

Author SHA1 Message Date
Berkus Decker d04c844bbb [temp] reenable custom uart mapping 2019-01-21 17:46:19 +02:00
Berkus Decker 12765de456 Enable edition 2018 2019-01-21 17:10:21 +02:00
Berkus Decker 5666fcbec9 Add mmu::init() from Andre Richter's tutorial
* Does not work on real rpi
  Gpu memory is corrupted with semi-random patterns
2019-01-21 02:00:24 +02:00
Berkus Decker 6cf5551efb [sq] Disable some unused memory stuff 2019-01-21 01:59:34 +02:00
Berkus Decker 93ced19f29 Update register crate dep 2019-01-21 01:58:34 +02:00
Berkus Decker ace49ed1ca [sq?] cargo add reordered some sections 2019-01-21 01:58:23 +02:00
Berkus Decker befa1c5db8 Rustfmt [paging] 2019-01-20 19:45:43 +02:00
Berkus Decker a2ea1f59a6 [wip] mark some unused vars 2019-01-20 19:45:32 +02:00
Berkus Decker aac393381d [wip] temporarily init allocator 2019-01-20 19:44:52 +02:00
Berkus Decker c5d99b3b82 Add map/unmap implementation from phil_opp 2019-01-20 19:44:37 +02:00
Berkus Decker 401dfdd06d Implement table hierarchy traversing 2019-01-20 19:44:26 +02:00
Berkus Decker 87b3007c10 Add paging Entry flags 2019-01-20 19:44:16 +02:00
Berkus Decker d92dea35af Add docs [wip] 2019-01-20 19:44:07 +02:00
Berkus Decker 6018ac2b3d Rearrange mods and imports [wip] 2019-01-20 19:43:57 +02:00
Berkus Decker 2abf70fe90 Introduce Phys/Virt addresses 2019-01-20 19:43:37 +02:00
Berkus Decker ef2796a583 Add updated paging module based on phil-opp code 2019-01-20 18:34:06 +02:00
Berkus Decker e75770a335 Put memregions inside setup_paging 2019-01-20 18:33:18 +02:00
Berkus Decker ed9cbe5d4e [wip] memtypes 2019-01-20 17:47:32 +02:00
Berkus Decker 98acc888bd Add paging helpers [sq] 2019-01-20 17:46:12 +02:00
Berkus Decker 7630f5a558 Add paging setup [wip] 2019-01-20 17:44:34 +02:00
Berkus Decker 73d852f57c Add memory map code from u-boot [sq] 2019-01-20 17:43:20 +02:00
Berkus Decker 1b5a1a87aa Add some paging assembly code
* [fixme - replace with cortex-a]
2019-01-20 17:41:53 +02:00
Berkus Decker 2308d7118e [wip] indicate future steps while core doesn't work... 2019-01-20 17:10:52 +02:00
Berkus Decker 6f9c5d9546 [sq] improve makefile 2019-01-20 02:28:08 +02:00
Berkus Decker 9765f3e081 [wip] Debugging display/boot problems 2019-01-20 02:24:59 +02:00
Berkus Decker f39ff81922 Add write_to helper 2019-01-20 02:24:38 +02:00
Berkus Decker fac5bf1f50 Add Color helpers 2019-01-20 02:23:54 +02:00
Berkus Decker 64b2afaaa6 [sq] mailbox cleanup 2019-01-19 02:52:43 +02:00
Berkus Decker 351d77d4dc Disable UART since writing to it seems to cause troubles - INVESTIGATE 2019-01-19 02:52:33 +02:00
Berkus Decker 7974c645a2 [sq] cosmetic boot updates 2019-01-19 02:50:55 +02:00
Berkus Decker aaabaa6369 [sq] Refactor qemu arguments 2019-01-19 02:50:34 +02:00
Berkus Decker d4c3db81bc Ignore binary artifacts 2019-01-18 17:08:34 +02:00
Berkus Decker f0c022deb0 [sq, DISP] Implement clippy suggestions in display 2019-01-18 17:08:06 +02:00
Berkus Decker f8fe6cf9e5 If started in EL1, just straight run 2019-01-18 17:07:34 +02:00
Berkus Decker d931e70b89 Copy swio explanation from bztsc's tutorials (see issue#) 2019-01-18 17:07:17 +02:00
Berkus Decker 3299b39ee3 [tmp] don't clean the target - it takes too long to build 2019-01-18 17:06:45 +02:00
Berkus Decker bc63f7c068 Add copy to sdcard make target 2019-01-18 17:06:29 +02:00
Berkus Decker 3cff2d9dac [wip] build kernel without serial for hardware (??) 2019-01-18 17:06:14 +02:00
Berkus Decker 32753f47bf Add non-docker QEMU 2019-01-18 17:05:53 +02:00
Berkus Decker 1dc4e2483a [sq] fix makefile deps 2019-01-18 17:05:31 +02:00
Berkus Decker 41a9187056 Use Andre Richter's Makefile with small changes
* From https://github.com/rust-embedded/rust-raspi3-tutorial/
2019-01-17 22:42:05 +02:00
Berkus Decker b96ed7c328 [DEL] messing around with ninjas 2019-01-17 22:42:05 +02:00
Berkus Decker 185f6916ac [wip] Enable aarch64 exceptions 2019-01-17 22:42:05 +02:00
Berkus Decker cb8932d68e [WIP] Ignore build artifacts 2019-01-17 22:42:05 +02:00
Berkus Decker c2bdfafb43 Gate uart enable behind cargo feature 2019-01-17 22:42:05 +02:00
Berkus Decker 3831a411b9 Replace uart.puts() with writeln!() 2019-01-17 22:42:05 +02:00
Berkus Decker 67b3b95d9a Use boot code from japaric/andre-richter 2019-01-17 22:42:05 +02:00
Berkus Decker e81c6ddf84 [SQ] Replace runscript.sh with ninja file 2019-01-17 22:42:05 +02:00
Berkus Decker b0ed5d0c17 Add two runner scripts - one for qemu, one for device
A debug build does NOT work on hw because it uses
the stack before setting it!
2019-01-15 22:44:50 +02:00
Berkus Decker 9e8deba0e1 Use qemu with Peter Maydell's patches for Mojave
See https://bugs.launchpad.net/qemu/+bug/1802684
2019-01-15 02:26:23 +02:00