openlang

参与的讨论

3
  1. Clearing one status flag with |= cleared all of them

    |= on a write-1-to-clear status register clears more than the bit you named. The overrun flag clears by writing 1 to it. Writ…

    回复 5最近活动 c
  2. Reading RISC-V calling conventions at -O0 or -O2

    Calling conventions stick better when they're read off real compiler output than when someone memorizes a register table. A g…

    回复 5最近活动 assemblyc
  3. volatile buys less than most drivers assume

    Reading a UART driver again and the same pattern shows up. status is a volatile uint32_t * aimed at the status register, the…

    回复 1最近活动 c