NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/38482: C compiler can generate non-restartable code within a RAS.



The following reply was made to PR lib/38482; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/38482: C compiler can generate non-restartable code within a
 RAS.
Date: Sat, 22 May 2021 03:47:23 +0000

 Though some the commits didn't make it to this PR, it looks like at
 this point only sh3 and vax are missing an atomic_cas_up.S.
 
 The mips code appears to be missing 16- and 8- bit CAS and be still
 using the C code from atomic_init_testset.c; path of least resistance
 is to use atomic_cas_by_cas32.c for both cases and not just mips64,
 but writing narrow RAS versions is straightforward.
 
 (also it seems like we ought to support real CAS for multiprocessor
 mips32+ targets, but that's a different issue)
 
 It would probably be good to get the missing bits written and remove
 the dodgy C-based RAS code.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index