diff --git a/.cargo/config.toml b/.cargo/config.toml index 8f40bd6..7d01a05 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -10,4 +10,5 @@ runner = """ qemu-system-riscv32 -m 150M -s -nographic + -serial mon:stdio -bios """ \ No newline at end of file diff --git a/README.md b/README.md index c350bf6..f61ad03 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,6 @@ modified: 2024-05-13T14:28:52-05:00 - [Volume II: Privileged](https://riscv.org/wp-content/uploads/2019/08/riscv-privileged-20190608-1.pdf) ## Videos -- [Sarah Jamie Lewis's "Let's Build An OS" series](https://www.youtube.com/watch?v=s_4tFz52jbc) (Note: it *can* run Doom) \ No newline at end of file +- [Sarah Jamie Lewis's "Let's Build An OS" series](https://www.youtube.com/watch?v=s_4tFz52jbc) (Note: it *can* run Doom) +- [Dr. Harry Porter's lectures on the xv6 kernel](https://www.youtube.com/watch?v=fWUJKH0RNFE&list=PLbtzT1TYeoMhTPzyTZboW_j7TPAnjv9XB) +- [LaurieWired's RISC-V Assembly primer](https://www.youtube.com/watch?v=0IeOaiKszLk) \ No newline at end of file diff --git a/src/script.ld b/src/script.ld index 8d718c1..c4444a1 100644 --- a/src/script.ld +++ b/src/script.ld @@ -37,6 +37,6 @@ SECTIONS { PROVIDE(_bss_end = .); # ... and one at the end } >ram AT>ram :bss # and this goes into the bss segment - . = ALIGN(16) # our stack needs to be 16-byte aligned, per the C calling convention - PROVIDE(_init_stack_top = . + 0x1000) # reserve 0x1000 bytes for the initialisation stack + . = ALIGN(16); # our stack needs to be 16-byte aligned, per the C calling convention + PROVIDE(_init_stack_top = . + 0x1000); # reserve 0x1000 bytes for the initialisation stack } \ No newline at end of file