Hacker GitHub

← All repos

emk/toyos-rs

View on GitHub ↗ ★ 90 Rust

Just hacking around on a toy Rust-based on based on the blog posts at http://blog.phil-opp.com/

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2017-01-28 · latest 2017-11-15

Mentions per year 4 mentions · busiest year 2017 (4)
20082026
  1. …of bitfields in structs. You wanna directly access the pic8259 chip from kernel space? Have fun: https://github.com/emk/toyos-rs/blob/fdc5fb8cc8152a63d1b6c85... The question is, is it worth exercising that full power for "ordinary" Rust…
  2. …actual hardware. But in most cases, you can encapsulate the low-level hardware inside a safe API: https://github.com/emk/toyos-rs/blob/fdc5fb8cc8152a63d1b6c85... In this example, only I/O port creation is an unsafe API, because you need to…
  3. …union" support and exhaustive 'match' statement. Here's an example of a Rust I/O port wrapper ( https://github.com/emk/toyos-rs/tree/master/crates/cpuio ) and an interrupt controller interface ( https://github.com/emk/toyos-rs/tree/master/c…
  4. …for debugging double faults. That's never nice. :-/ Here's my toy PIC 8592 interface in pure Rust: https://github.com/emk/toyos-rs/tree/master/crates/pic8259_s... Be careful, it's a subtle chip and I only deal with the basics.
    comment by ekidd · 2017-01-28 · in Forth: The Hacker’s Language