Re: CVS commit: src/sys/arch

Izumi Tsutsui <[email protected]>
Newsgroups gmane.os.netbsd.ports.m68k
Message-ID <[email protected]>
thorpej@ wrote in source-changes:
 https://mail-index.netbsd.org/source-changes/2023/12/27/msg149064.html

> Module Name:	src
> Committed By:	thorpej
> Date:		Wed Dec 27 03:03:42 UTC 2023
> 
> Modified Files:
> 	src/sys/arch/amiga/amiga: amiga_init.c genassym.cf locore.s
> 	src/sys/arch/atari/atari: atari_init.c genassym.cf locore.s
> 	src/sys/arch/cesfic/cesfic: genassym.cf locore.s
> 	src/sys/arch/hp300/hp300: genassym.cf locore.s
> 	src/sys/arch/luna68k/luna68k: genassym.cf locore.s
> 	src/sys/arch/m68k/include: pmap_motorola.h pte_motorola.h
> 	src/sys/arch/mac68k/mac68k: genassym.cf locore.s
> 	src/sys/arch/mvme68k/mvme68k: genassym.cf locore.s
> 	src/sys/arch/news68k/news68k: genassym.cf locore.s
> 	src/sys/arch/next68k/next68k: genassym.cf locore.s
> 	src/sys/arch/x68k/x68k: genassym.cf locore.s
> 
> Log Message:
> Stop using magic numbers for the MMU root pointer attributes and the
> Translation Control register, and also get rid of "#if PGSHIFT == ..."
> where those magic numbers are used.
> 
> Instead, define new macros: MMU51_SRP_BITS, MMU51_CRP_BITS, MMU51_TCR_BITS,
> and MMU40_TCR_BITS, in terms of the definitions in mmu_{40,51}.h.  These
> automagically adapt to 8K and 4K pages based on the machine-specific value
> of PGSHIFT.

Nice cleanup! (after 14 years)

 https://github.com/NetBSD/src/commit/378ad8d
 https://github.com/NetBSD/src/commit/465857f
 https://github.com/NetBSD/src/commit/789c747
 https://github.com/NetBSD/src/commit/1f792f8

---
Izumi Tsutsui
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.