Wednesday, 2020-09-09

*** tpb has joined #tomu00:00
*** TheJJ has quit IRC01:24
*** TheJJ has joined #tomu01:25
xobsmithro: Interesting. The way the svd2rust crate does it is using `Option::take()` which doesn't use any extra memory (since storing a pointer in an `Option<T>` takes no extra space because pointers can't be NULL).02:01
xobsThe approach they take wouldn't work on Fomu because Fomu is `rv32i` and not `rv32ia` (no Atomic instructions, and therefore no `AtomicBool`). However, that would work on Tomu, and on Betrusted as well.02:02
*** CarlFK has quit IRC03:58
*** CarlFK has joined #tomu04:00
tntxobs: on a single core rv32i can't you just disable interrupt to emulate atomics ?04:20
xobstnt: You can, and I believe the vexriscv does something similar in its HDL.04:22
xobsThe problem is that the spec for `riscv32i-unknown-none-elf` has `atomic_cas: false`: https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/riscv32i_unknown_none_elf.rs#L2104:24
tpbTitle: rust/riscv32i_unknown_none_elf.rs at master · rust-lang/rust · GitHub (at github.com)04:24
xobsWhich means there is no `AtomicBool` struct at all.04:24
*** W1lkins has quit IRC04:53
*** W1lkins has joined #tomu04:54
*** unlobito has quit IRC04:54
*** unlobito has joined #tomu04:54
*** wrtlprnft has quit IRC08:08
*** wrtlprnft has joined #tomu08:08
*** CarlFK has quit IRC14:47
*** im-tomu has left #tomu14:49
*** im-tomu has joined #tomu14:50
*** CarlFK has joined #tomu15:58
*** AnimaInvicta has joined #tomu16:56
CarlFKhey usb experts... if I hook tx to rx, can I do loop back?  like send data, get data, which will confirm that path is working.20:55
tntusb doesn't have tx / rx ...21:02
CarlFKwelp, so much for that idea21:09
*** AnimaInvicta has left #tomu22:05
*** CarlFK has quit IRC23:41

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!