Re: New pmap status update

Jason Thorpe <[email protected]> Fri, 19 Dec 2025 07:07:28 -0800
Newsgroups gmane.os.netbsd.ports.m68k
Message-ID <[email protected]>
> On Dec 15, 2025, at 7:42=E2=80=AFAM, Jason Thorpe <[email protected]> =
wrote:
>=20
>> On Dec 15, 2025, at 7:38=E2=80=AFAM, Izumi Tsutsui =
<[email protected]> wrote:
>>=20
>> The SMALL020 (without DIAGNOSTIC + DEBUG) kernel also can get
>> single user shell if /rescue/init is specified by RB_ASKNAME:
>=20
> There are probably other uses of TAS/CAS floating around that need to =
be addressed.

Ok, I have made changes to the kernel and libc should should take care =
of this.  In particular, there are no more direct uses of CASx in =
libc/libkern for atomic operations other than _atomic_cas_N(), and for =
__HAVE_M68K_BROKEN_RMC, those turn into restartable atomic sequences =
(and are switched at run-time for libc using a new machdep.broken_rmc =
sysctl that hp300 implements, returning true if the CPU is a 68020).

-- thorpej