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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user