diff --git a/src/system/boot/arch/arm/arch_mailbox_bcm2835.cpp b/src/system/boot/arch/arm/arch_mailbox_bcm2835.cpp index fa0abb64cc..42f5764205 100644 --- a/src/system/boot/arch/arm/arch_mailbox_bcm2835.cpp +++ b/src/system/boot/arch/arm/arch_mailbox_bcm2835.cpp @@ -79,7 +79,7 @@ ArchMailboxArmBCM2835::Read(uint8 channel, uint32& value) inline auto& ArchMailboxArmBCM2835::GetRegister(unsigned reg) { - auto addr = fBase + ARM_CTRL_0_MAILBOX_BASE + reg; + auto addr = fBase + reg; return *reinterpret_cast*>(addr); } diff --git a/src/system/boot/platform/u-boot/arch/arm/arch_mailbox.cpp b/src/system/boot/platform/u-boot/arch/arm/arch_mailbox.cpp index 81eeab0c17..418dffc5dc 100644 --- a/src/system/boot/platform/u-boot/arch/arm/arch_mailbox.cpp +++ b/src/system/boot/platform/u-boot/arch/arm/arch_mailbox.cpp @@ -20,7 +20,7 @@ arch_mailbox_init() { #if defined(BOARD_CPU_BCM2835) || defined(BOARD_CPU_BCM2836) extern ArchMailbox *arch_get_mailbox_arm_bcm2835(addr_t base); - gMailbox = arch_get_mailbox_arm_bcm2835(DEVICE_BASE); + gMailbox = arch_get_mailbox_arm_bcm2835(DEVICE_BASE + ARM_CTRL_0_MAILBOX_BASE); #endif return B_OK; }