-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[platform][arm-qemu] fix issue with uart driver on KVM
The accessing method the compiler is emitting for the *REG32 macros on arm32 and arm64 is occasionally generating load/stores with writeback. Though this has worked before, it seems to be rejected with whatever combination of qemu + linux + hardware on this Raspberry Pi 5. Convert the register accessors to inline asm that uses basic load/store instructions, which is really the only correct thing to do now and in the long run. Add a TODO to move this to reg.h and start to revamp how registers are accessed across LK, but for now keep it just here to fix things.
- Loading branch information
Showing
1 changed file
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters