Page MenuHomeFreeBSD

powerpc: replace tailq pointers with iterators
ClosedPublic

Authored by dougm on Apr 20 2025, 5:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 14, 1:03 PM
Unknown Object (File)
Apr 25 2025, 7:57 PM
Unknown Object (File)
Apr 25 2025, 1:03 PM
Unknown Object (File)
Apr 25 2025, 9:52 AM
Unknown Object (File)
Apr 25 2025, 6:32 AM
Unknown Object (File)
Apr 25 2025, 4:33 AM
Unknown Object (File)
Apr 23 2025, 6:48 AM
Unknown Object (File)
Apr 22 2025, 5:02 AM
Subscribers

Details

Summary

Change architecture-specific code to use iterators rather than tailq pointers.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Apr 20 2025, 5:50 AM
sys/powerpc/aim/mmu_oea64.c
3802

I am curious why this condition is needed now.

sys/powerpc/aim/mmu_oea64.c
3802

make buildkernel TARGET=powerpc TARGET_ARCH=powerpc will emit these lines:

--- mmu_oea64.o ---
/freebsd/dougm/src/sys/powerpc/aim/mmu_oea64.c:3804:1: warning: unused function 'moea64_sp_promote' [-Wunused-function]
 3804 | moea64_sp_promote(pmap_t pmap, vm_offset_t va, vm_page_t m)
      | ^~~~~~~~~~~~~~~~~

If the condition is removed.

kib added inline comments.
sys/powerpc/aim/mmu_oea64.c
3802

Ok, it is fine, but should be a separate commit.

This revision is now accepted and ready to land.Apr 20 2025, 6:32 PM

Add braces. Drop a null check. Restore a physical address check. Drop attempts to silence compiler warnings.

This revision now requires review to proceed.Apr 20 2025, 8:47 PM
This revision is now accepted and ready to land.Apr 20 2025, 11:26 PM
This revision was automatically updated to reflect the committed changes.