Commit Graph

86 Commits

Author SHA1 Message Date
bjh21 251de84ccc Consistently declare the types of float_rounding_mode and float_exception_flags
as fp_rnd and fp_except respectively.
2002-05-06 19:05:00 +00:00
bjh21 25540eca7e All the versions of softfloat-specialize were practically identical, so replace
them with a single one.
2002-04-21 21:07:35 +00:00
matt dd5b171018 Add sync before isync since the MPC74xx require it. 2002-03-28 00:38:46 +00:00
matt 12810ed37d Use size_t in prototype (so this will be LP64 clean for PPC64 someday).
Calculate len separately for icache & dcache in case each has different
cacheline widths.  Make the code for both loops the same except for the
dcbst/icbi.  Deal with sizes >=2GB properly (like that'll happen but ...)
2002-03-26 21:20:24 +00:00
dbj f0658bdada make compile with _STANDALONE 2002-03-18 05:10:58 +00:00
eeh a33f33ab31 Remove leftover debug code. Oops. 2002-03-13 00:57:53 +00:00
eeh bc40300979 Use new CPU_CACHEINFO sysctl to get more detailed information about
cache layout.
2002-03-12 22:08:21 +00:00
kleink 3ca01a7f77 Do without stfiwx; per PEM32 Rev. 1 it's an optional part of the UISA,
and not implemented on the 601.
2002-02-22 18:21:22 +00:00
eeh 2fdccc01af Add bzero.S and strlen.S to the stuff that gets installed in libkern. 2002-02-20 22:45:04 +00:00
simonb 2d8577fb83 Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
 - Use the above for the __infinity and __nan constants on all
   architectures that use the standard ieee754 representation of
   those constants.
 - Add a single copy of various ieee754 math functions (frexp, isinf,
   isnan, ldexp and modf) that had numerous duplicates among the
   arch-specific directories.
 - Use the above functions on all architectures where the generic C
   versions where used.  Architectures that had local assembly
   routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
thorpej ac8c1c29e9 * Add WSYSCALL() to SYS.h, which creates a system call with an
internal name and a weak alias for the name.
* Add a WEAKASM syscall list, and process it.
* Make sysarch() have an internal name (_sysarch()).
2002-01-14 00:55:55 +00:00
thorpej 5d3e829423 Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
2002-01-13 21:45:39 +00:00
mjl a9c86c6ce0 Add assembler version of strlen. 2001-11-30 02:26:35 +00:00
mjl 625c08cf7e Outifdef some stuff not needed in the _KERNEL case. 2001-11-30 02:25:50 +00:00
mjl 7f0157c400 Make this work in kernel space too. 2001-11-29 00:20:37 +00:00
mjl feb8901632 Add PPC assembler routines for ffs(3), bzero(3) and memset(3). 2001-11-25 01:09:58 +00:00
mjl d1960d6679 fix for -Wshadow 2001-11-07 17:46:21 +00:00
matt 9969d4398b Ansi'fy. (to make this compile under -Wstrict-prototypes) 2001-08-27 16:46:43 +00:00
tsubai 193161b3fe Add a __clone(3) entry point for powerpc. 2001-07-20 17:19:15 +00:00
simonb aebecd5c42 Compile in soft-float support if MKSOFTFLOAT != "no". 2001-06-18 17:05:32 +00:00
tsubai bfc2a06464 Correct input and output of asm. 2001-05-25 12:28:12 +00:00
simonb 937389b6ee Handle soft-float case, code from David Querbach of Real-Time Systems Inc. 2001-05-25 12:17:45 +00:00
simonb 42102f1084 Handle soft-float case, from the arm flt_rounds.c. 2001-05-25 12:14:05 +00:00
simonb 3f04a27329 Softfloat support files for PowerPC. 2001-05-25 11:38:57 +00:00
wiz d1112b63ff De-lint. Reviewed by christos. 2001-02-09 14:16:12 +00:00
wiz 4d8cd9d9e4 Add some casts to make lint shut up. Reviewed by christos. 2001-02-08 18:28:07 +00:00
wiz 37606c1593 delint (variable is only used for size, so make if size_t instead of int). 2001-01-26 13:20:32 +00:00
matt b0bf2adc11 This should convert to syscall but that's too hard. So punt. XXX 2000-12-13 07:50:48 +00:00
kleink 82fd76bb06 Need an internal name for pipe(2). 2000-09-28 08:38:53 +00:00
msaitoh f9b799b651 check LIBC_SCCS 2000-09-13 22:32:25 +00:00
itohy af83a97717 Add special treatment of shmat(2).
On m68k ELF calling standard (__SVR4_ABI__), if a function
returns a pointer, the return value should go to a0 as well as d0.
2000-07-07 08:20:50 +00:00
mrg 6b9ed41192 sync with libkern version; <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 06:30:02 +00:00
kleink b8a4d7adf9 Need an internal name for fork(). 2000-06-26 06:32:54 +00:00
kleink 15bc7ed349 Thinko in previous: we do always use an internal name. 2000-06-26 06:25:36 +00:00
kleink 03f996bd0c Add internal names for brk() and sbrk(). 2000-06-23 15:40:36 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
kleink e4d7c2e329 Add ISO C99 long long integer general utility interfaces; partially addresses
PR standards/9482.
2000-03-06 18:32:22 +00:00
kleink 7b61131dba Missed in end -> _end cleanup. 2000-02-24 15:37:34 +00:00
kleink a379081935 For consistency with all other ports, clear errno in the prologue to the
syscall here as well - while the manual page advises applications to clear
errno themselves their actual behaviour may be questionable, especially in
light of the other ports' implementations.
2000-02-23 20:16:57 +00:00
kleink 9d7ea6523c Support *__errno() indirection. 2000-01-27 14:58:48 +00:00
mycroft c26054b799 Delint. 2000-01-22 22:40:58 +00:00
kleink 11e6c54cfc C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
1999-12-23 10:15:05 +00:00
mycroft b3b07a4c6e Another microoptimization. Take advantage of the addition already having set
the flags for the <=0 comparison.
1999-08-30 18:28:24 +00:00
mycroft 0560606383 Reuse the trick of loading 0.0 (rather than 1.0) and then modifying the
exponent.  It's a bit faster on some machines.
1999-08-30 18:01:40 +00:00
augustss 75d2dfe657 Remove more unused mulexp variables. 1999-08-30 15:11:32 +00:00
mycroft 5f34ffabca ldexp(denormal, exp>1023) would generate the wrong result in all non-overflow
cases.  Totally rework this code to fix this bug *and* make it faster.
1999-08-29 22:45:32 +00:00
mycroft 02a48bde49 Don't ever return -0.0. 1999-08-29 19:04:02 +00:00
mycroft 0d708431b7 Minor style change. 1999-08-29 18:40:50 +00:00
mycroft ea4b733810 Trivial KNF. 1999-08-29 18:39:35 +00:00