Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pavehawk2007
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
pavehawk2007
6y ago
Just so you know, this is part of a larger tutorial at https://osblog.stephenmarz.com where I write a RISC-V operating system using Rust. Let me know if you have any questions!
32.
▲
Files by Name (Minix 3 Filesystem)
(blog.stephenmarz.com)
59 points
by
pavehawk2007
6y ago
|
15 comments
33.
▲
by
pavehawk2007
6y ago
Coming from a background where I've looked at programming languages very little, I like the way this tutorial takes each step and not only tells me what it is, but shows me how to do it. +1 for the drawings :)
34.
▲
by
pavehawk2007
6y ago
Hello, The introduction was meant to be tongue-and-cheek. There was a talk back in January which made headlines due to its claims. https://www.youtube.com/watch?v=8SoJR3sCaR4 When I started learning the Nim programming lang
35.
▲
by
pavehawk2007
6y ago
I write OSes most of the time, but seeing how languages end up boiling down is a very good exercise in learning the architecture.
36.
▲
Assembly's Perspective of C
(blog.stephenmarz.com)
164 points
by
pavehawk2007
6y ago
|
15 comments
37.
▲
by
pavehawk2007
6y ago
That's what I thought. I really only care about how much "stuff" I can store in a block, which is 1,024 bytes. If that's 1KiB or 1.024KBs, the distinction isn't worth that much brainpower.
38.
▲
by
pavehawk2007
6y ago
RISC-V has their own supported toolchain. You can get it here: https://github.com/riscv/riscv-gnu-toolchain.git With Rust, you can do what I did with my OS. It can compile out of the box. The kendryte has a "BSP&q
39.
▲
by
pavehawk2007
6y ago
xv6 also was switched to RISC-V (not exactly sure when, but sometime in 2019), and it has a nice book for the actual course. Course: https://pdos.csail.mit.edu/6.828/2019/xv6.html Book: https://pdos.csa
40.
▲
by
pavehawk2007
6y ago
Thanks for the feedback. It does get tricky to balance going too far into the weeds and keeping it above board. I think a note would be helpful as you suggested. I do try to put lots of comments in the Rust code to describe what I didn'
41.
▲
by
pavehawk2007
6y ago
I tried some of SiFive's evaluation cores. They limit you quite a bit unless you pay. Furthermore, many of the FPGAs worth their salt were quite expensive. The K210 in the MaixBit form is only $20, and it comes with a camera and LCD. F
42.
▲
by
pavehawk2007
6y ago
Thanks! You might want to check out the Kendryte K210. I'm trying out these boards for development. They are designed with two (I think) 64-bit RISC-V cores with a hardware FPU. https://www.seeedstudio.com/blog/201
43.
▲
by
pavehawk2007
6y ago
If that irritates you, please don't check the grammar and errant placement of commas! All jokes aside. Fixed, thanks.
44.
▲
by
pavehawk2007
6y ago
Originally, I required a GNU toolchain from the RISC-V organization for both assembling and linking. Now, I don't need any external tools (except QEMU to run it). Everything you need can be downloaded using Rust's configuration to
45.
▲
by
pavehawk2007
6y ago
Wow, that looks like a lot of work went into this RFC. I'm glad it's being taken seriously, and I anxiously await the outcome--whatever that might be. Thank you!
46.
▲
by
pavehawk2007
6y ago
I stand corrected! Thanks for the info!
47.
▲
by
pavehawk2007
6y ago
Hello, all signs point to no. I've seen many threads about stabilizing asm, but most seem to say no this won't happen. In fact, the Rust compiler now throws a warning that asm!() is deprecated in favor of llvm_asm!(). This is the
48.
▲
by
pavehawk2007
6y ago
Thanks! Glad it could serve some purpose!
49.
▲
by
pavehawk2007
6y ago
I think you'll get something different for each. The purpose of mine is to explore the Rust programming language, but more specifically on the RISC-V architecture. Rust "recently" became out-of-the-box for RISC-V, which has o
50.
▲
RISC-V OS using Rust: Filesystems
(osblog.stephenmarz.com)
242 points
by
pavehawk2007
6y ago
|
72 comments
51.
▲
RISC-V OS Using Rust: Process Memory
(osblog.stephenmarz.com)
2 points
by
pavehawk2007
7y ago
|
0 comments
52.
▲
RISC-V OS Using Rust: External Interrupts
(osblog.stephenmarz.com)
1 points
by
pavehawk2007
7y ago
|
0 comments
53.
▲
RISC-V OS Using Rust: Handling Interrupts and Traps
(osblog.stephenmarz.com)
2 points
by
pavehawk2007
7y ago
|
0 comments
54.
▲
by
pavehawk2007
7y ago
Patience, my friend. We're not quite there yet with this tutorial. We don't need sfence.vma for what I've covered here. Plus, there are about four ways to use the sfence.vma instruction (whether or not rs1 is zero or not and
55.
▲
by
pavehawk2007
7y ago
A = Accessed (read from or written to [a load or a store]), D = Dirty (written to only [a store only])
56.
▲
RISC-V OS Using Rust: Page Grained Allocations
(osblog.stephenmarz.com)
2 points
by
pavehawk2007
7y ago
|
0 comments