CVS commit: src/sys/arch
"Jason R Thorpe" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: thorpej Date: Thu Apr 9 14:36:56 UTC 2026 Modified Files: src/sys/arch/cesfic/cesfic: machdep.c src/sys/arch/hp300/hp300: machdep.c src/sys/arch/luna68k/luna68k: machdep.c src/sys/arch/m68k/include: m68k.h src/sys/arch/m68k/m68k: m68k_machdep.c src/sys/arch/mvme68k/mvme68k: machdep.c src/sys/arch/news68k/news68k: machdep.c src/sys/arch/next68k/next68k: machdep.c src/sys/arch/virt68k/virt68k: machdep.c src/sys/arch/x68k/x68k: machdep.c Log Message: Re-factor the virt68k mm_md_physacc() into mm_md_physacc_regular(), which is a common implementation that uses phys_seg_list[] to verify the offset is in regular physical memory. Add a mm_md_physacc() alias to mm_md_physacc_regular(), which makes it the standard implementation for m68k platforms. If a platform wishes to provide additional access beyond what phys_seg_list[] describes (hp300 and x68k fall into this category), they merely need to provide a mm_md_physacc() that adds their own filtering in addition to what mm_md_physacc_regular() provides. Remove several copies of mm_md_physacc() which were obviously just blind copies of the hp300 version and incorrect for the platforms that copied it (the hp300 has an oddball memory layout). To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/sys/arch/cesfic/cesfic/machdep.c cvs rdiff -u -r1.266 -r1.267 src/sys/arch/hp300/hp300/machdep.c cvs rdiff -u -r1.128 -r1.129 src/sys/arch/luna68k/luna68k/machdep.c cvs rdiff -u -r1.33 -r1.34 src/sys/arch/m68k/include/m68k.h cvs rdiff -u -r1.19 -r1.20 src/sys/arch/m68k/m68k/m68k_machdep.c cvs rdiff -u -r1.190 -r1.191 src/sys/arch/mvme68k/mvme68k/machdep.c cvs rdiff -u -r1.137 -r1.138 src/sys/arch/news68k/news68k/machdep.c cvs rdiff -u -r1.141 -r1.142 src/sys/arch/next68k/next68k/machdep.c cvs rdiff -u -r1.38 -r1.39 src/sys/arch/virt68k/virt68k/machdep.c cvs rdiff -u -r1.227 -r1.228 src/sys/arch/x68k/x68k/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.