3 comments:
File src/soc/amd/common/block/smbus/smbus.c:
union reg_bank {
uint8_t reg8[0x100];
uint16_t reg16[0x100 / sizeof(uint16_t)];
};
It's a strange compiler optimisation topic indeed. […]
With the base address passed on the stack now, this does not seem to happen.
Previously, the code accessed global acpimmio_smbus and _asf so it happened.
Patch Set #10, Line 23: controller->reg8[reg];
read8()
Done
Patch Set #10, Line 29: controller->reg8[reg] = val
write8()
Done
To view, visit change 42074. To unsubscribe, or for help writing mail filters, visit settings.