arm: relocate UART when remapping virtual memory

The uart virtual address changes as soon as we apply the kernel memory
map. gUART is used only after that, from serial_init() onwards. So it
should use the virtual address, and not the physical address it was
previously created with while parsing the FDT.

Change-Id: I8c8a024fe564b49d6555f8e48f5ab31652d30708
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10068
Reviewed-by: Fredrik Holmqvist <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
PulkoMandy
2025-12-09 19:35:39 +00:00
committed by waddlesplash
parent 0f7bee148d
commit 97675f2fc4
2 changed files with 6 additions and 0 deletions
@@ -35,6 +35,7 @@ public:
virtual void FlushTx() = 0;
virtual void FlushRx() = 0;
void SetBase(addr_t base) { fBase = base; }
addr_t Base() const { return fBase; }
int64 Clock() const { return fClock; }
bool Enabled() const { return fEnabled; }