CVS commit: src/sys/arch/arm/arm32

"Izumi Tsutsui" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	tsutsui
Date:		Sun Apr 26 12:52:34 UTC 2026

Modified Files:
	src/sys/arch/arm/arm32: bus_dma.c

Log Message:
arm32/bus_dma: fix interger overflow on 32 bit kernels

On Raspberry Pi 4B with BCM2711, dr_busbase is 0xc0000000 and
dr_len is 0x40000000, so "dr->dr_busbase + dr->dr_len" causes
wraparound.

Fixes panic on Raspberry Pi 4B during attaching vcmbox0:
> panic: _bus_dma_busaddr_to_paddr: curaddr 0xc5b6c000not in range


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/arch/arm/arm32/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.