summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/fpu
AgeCommit message (Collapse)Author
2024-05-13remove prototypes with no matching functionJonathan Gray
ok mpi@
2024-03-29Clean the fpu trap code:Miod Vallat
- since there are no hardware fpu operation queues on real sparc64 hardware, don't bother declaring the relevant struct and fields. - when an fpu instruction needs to be emulated, pass it directly to fpu_cleanup rather than fake its appearance in the fpu queue. While there, also pass the ready-to-use union sigval computed in trap() in case a signal needs to be delivered. ok claudio@ kettenis@
2024-03-29No longer include <machine/fsr.h> from <machine/reg.h>, and have the fewMiod Vallat
users which need both explicitly include both. ok claudio@ kettenis@
2024-03-29De-register fpu completion code.Miod Vallat
There are pending changes to some of these files, and this would get in the way. ok claudio@ kettenis@
2022-10-21Remove vestigial bits of 32-bit binaries support; drop the `64' suffix inMiod Vallat
struct names when the matching `32' flavour got removed. Joint work with cheloha@, all bugs mine.
2022-10-16Change function definitions using the identifier-list form used in theJonathan Gray
1st edition of Kernighan and Ritchie's The C Programming Language, to that of the parameter-type-list form described in the ANSI X3.159-1989 standard. In ISO/IEC 9899:2023 drafts, there is only one form of function definition. "N2432 Remove support for function definitions with identifier lists". ok kettenis@
2021-03-11spellingJonathan Gray
2020-08-19Push KERNEL_LOCK/UNLOCK() dance inside trapsignal().Martin Pieuchot
ok kettenis@, visa@
2019-06-26Fix sign handling in emulated FP operations on sparc64Jeremie Courreges-Anglas
Adapted from FreeBSD revision 146673 by Stephen Paskaluk and stefanf@FreeBSD. ok deraadt@
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
struct proc to struct process. ok deraadt@ kettenis@
2016-10-08Various printf claim to report the PID, so actually report that and not the TIDPhilip Guenther
Build testing assistance from deraadt@
2014-09-14Fix some bugs in the fpu_sqrt implementation that would limit the accuracyMark Kettenis
of the result in many cases. From FreeBSD allbeit with some changes to keep the coding style consistent.
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2011-09-17arithemtic -> arithmeticMiod Vallat
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
KERNEL_PROC_LOCK -> KERNEL_LOCK KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK oga@ ok
2010-05-09Fix comments as well.Mark Kettenis
2010-05-09Rename round() to fpu_round(). This matches the m68k code from which thisMark Kettenis
code is derived and makes gcc4 happy by avoiding a conflict with the builtin for the standard C99 round(3). ok miod@
2010-01-01Make sure we grab the kernel lock before invoking trapsignal().Miod Vallat
ok kettenis@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-09-09Make fpproc per-cpu. This turns fpproc into a macro, so adjust fpu/fpu.cMark Kettenis
to avoid collisions.
2006-06-21There was hope, at one time, of sharing fpu/ with sparc. That's stillJason Wright
possible, but not with #ifdef SUN4U all over the place. The define should be _v9 or __sparc64__ since it will equally well apply to all v9 machines. We'll burn that bridge before we cross it.
2006-05-14Make the array of fpu exception types/codes big enough.Mark Kettenis
Fix a typo too, such that we actually read beyond element 0 in all cases. ok miod@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02one more... nuke clause 3 & 4Jason Wright
2002-08-12Remove a large chunk of `#ifdef notyet' codeJason Wright
2002-08-03Don't depend on curproc, pass the proc * down to the functions that need it ↵Jason Wright
(fmovr/fmovcc).
2002-07-10'sez' is not an english word; ok deraadt@Jason Peel
2002-03-14First round of __P removal in sysTodd C. Miller
2001-10-05define FPE_STATE so that DEBUG will compileJason Wright
2001-09-15Mostly rewritten decode of fpu emulation:Jason Wright
o handles decode of all 64 32 bit registers (based on type) o easier to read (at least imo). o needs some optimization (clarity was the first goal here)
2001-09-10More accurate compare (from netbsd)Jason Wright
2001-09-10More debugging stuff.Jason Wright
2001-09-10Add more debugging stuff (including fpstate dumping)Jason Wright
Also, and more importantly, applying the same mask to rs2 and rd is bad ju-ju for the F?TO? instructions.
2001-09-10Add some debugging stuff: a function to dump all of the fpstate64 fields.Jason Wright
2001-09-09only one prototype for fpu_implode necessary.Jason Wright
2001-09-09in fpu_ftox() make sure the high bits are the return value and res[1] getsJason Wright
the low bits.
2001-09-08From NetBSD: debugging stuff to dump fpn'sJason Wright
2001-09-08Import netbsd's fpu handling (modified to be separate from sparc); this isJason Wright
for paranoia's sake (don't want to break sparc32 while hacking on it). Real work by art.