DescriptionQ963
Q963FWGoogleASIC interview problem
Read a changing MMIO register
TechniquesFWMMIOCvolatile
DifficultyEasy
TopicFirmware
LanguageC
Format4 choices
01
Problem
Firmware polls a device status register whose value may change independently of the CPU. The register is mapped at a fixed physical address. Why should the C access use a volatile-qualified MMIO pointer?
02
