Skip to content

Removed check for neg. address and changed offset calculation in mmio.cc, as it limits ZYNQ-7 boards#1525

Open
DirkStober wants to merge 1 commit intoXilinx:image_v3.1.3from
DirkStober:allow_mmiocc_negative
Open

Removed check for neg. address and changed offset calculation in mmio.cc, as it limits ZYNQ-7 boards#1525
DirkStober wants to merge 1 commit intoXilinx:image_v3.1.3from
DirkStober:allow_mmiocc_negative

Conversation

@DirkStober
Copy link

The check for negative addresses when allocating the MMIO disables half the address space of the ZYNQ-7000 boards, as all 32-bit are required to map the higher half (for example MAXI_GP1) (off_t is a 32bit integer for arm32).

In addition, the check for negative base addresses still leaves plenty of illegal addresses for the Zynq US+, as the maximum valid address is 40 bit wide.

I would suggest removing the negative base address check and changing the calculation of the virt_off to use a bitwise operation to avoid any overflows.

Signed-off-by: Dirk Stober dirk.stober@tum.de

@jogomojo jogomojo changed the base branch from master to image_v3.1.3 December 3, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant