summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386
Commit message (Collapse)AuthorAgeFilesLines
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-0923-91/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Handle inf/nan correctly.das2007-01-061-2/+14
|
* The distinction between quiet and signaling NaN formats isdas2007-01-031-0/+21
| | | | | machine-dependent; these files tell the latest version of gdtoa what to do.
* Instead of re-implementing hton[ls] and friends for each arch, add a new MIcognet2006-11-065-206/+0
| | | | | | | file, net/ntoh.c, which just implement them using the inline functions from <sys/endian.h>. Suggested by: bde
* Forgot to bump the document date.ru2006-10-131-1/+1
|
* Some word smithing adopted from the PR.ru2006-10-131-14/+14
| | | | | | | PR: docs/54451 Originally by: Andreas Fuchs Adopted by: jhb MFC after: 3 days
* Markup fixes.ru2006-09-171-6/+6
|
* GC dead code. If we want to stay polite to the foreign compilers,ru2006-09-052-63/+1
| | | | | | we can find another way to issue an #error, but using a preprocessed assembler for that purpose and clobbering libc.a with an empty .o just for the sake of #error reporting is way too much of a burden.
* Replace absolute addressing in the call instructions with position-independendkib2006-06-051-2/+3
| | | | | | | | calls. This eliminates TEXTREL from libc, making its text segment relocatable. PR: i386/85242 Approved by: kan (mentor) MFC after: 1 month
* A few minor wording changes and a clarification about error conditions.bsd2006-05-031-10/+10
|
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+1
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+71
| | | | Reviewed by: davidxu
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-122-0/+4
| | | | the function definition.
* Clean out the leftovers from the i386_set_gsbase() TLS conversion.peter2005-06-291-18/+1
| | | | | | | | Like on libthr, there is an i386_set_gsbase() stub implementation here to avoid libc.so.5 issues. This should likely be a weak symbol and I expect this will be fixed soon. Approved by: re
* Provide stub functions for i386_set_ldt() and i386_get_ldt() even whenpeter2005-04-262-7/+4
| | | | | compiling as an amd64 support binary. They will return EINVAL on an amd64 kernel, but this simplifies other #ifdefs that were getting a bit nasty.
* No longer use _amd64_set_gsbase(). Use i386_set_gsbase() even whenpeter2005-04-266-166/+2
| | | | building for amd64.
* Eliminate an unpredictable branch from bcmp().alc2005-04-211-5/+4
| | | | Reviewed by: bde
* Attempt i386_set_gsbase() before using the user_ldt code. Unimplementedpeter2005-04-141-1/+4
| | | | sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.
* Add stubs for the %fs/%gs base management calls.peter2005-04-145-0/+149
|
* Fix strict-alias warnings by removing excessive (and wrong) casts.peter2005-04-072-2/+2
|
* Define LDBL_NBIT to be a mask indicating the position of the integerdas2005-03-071-1/+2
| | | | | | | | bit in a long double. For architectures that don't have such a bit, LDBL_NBIT is 0. This makes it possible to say `mantissa & ~LDBL_NBIT' in places that previously used an #ifdef to select the right expression. The optimizer should dispense with the extra arithmetic when LDBL_NBIT is 0.
* Update my email address.das2005-02-061-1/+1
|
* Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc.das2005-01-151-0/+0
| | | | | The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* Make sure the first argument to the user function is 16-byte aligned.deischen2004-12-051-5/+7
| | | | Submitted by: tegge
* Remove 80386 support from libc.jhb2004-11-162-12/+0
|
* When building the custom i386 libraries for use on amd64 kernels, wepeter2004-11-066-0/+170
| | | | | | | | | can't use the i386_set_ldt() family of routines, because they are not implemented. Instead, use the recently exposed direct access sysarch routines for setting what %fs and %gs point to. Use this for the i386 TLS _set_tp() routine, but only when compiling to run as a 32 bit support binary for amd64 kernels.
* Sync with sys/i386/include/endian.h: use the single instruction 'bswap'.obrien2004-10-182-0/+8
|
* Add support for TLS in statically linked programs.dfr2004-08-152-1/+53
|
* Make FLT_ROUNDS correctly reflect the dynamic rounding mode.das2004-07-192-1/+26
|
* Replace seven nominally MD implementations of frexp() that are brokendas2004-07-182-68/+1
| | | | for subnormals with one implementation that works.
* Implement the classification macros isfinite(), isinf(), isnan(), anddas2004-07-092-76/+1
| | | | | | | | | | | | | | | | | | | | | isnormal() the hard way, rather than relying on fpclassify(). This is a lose in the sense that we need a total of 12 functions, but it is necessary for binary compatibility because we have never bumped libm's major version number. In particular, isinf(), isnan(), and isnanf() were BSD libc functions before they were C99 macros, so we can't reimplement them in terms of fpclassify() without adding a dependency on libc.so.5. I have tried to arrange things so that programs that could be compiled in FreeBSD 4.X will generate the same external references when compiled in 5.X. At the same time, the new macros should remain C99-compliant. The isinf() and isnan() functions remain in libc for historical reasons; however, I have moved the functions that implement the macros isfinite() and isnormal() to libm where they belong. Moreover, half a dozen MD versions of isinf() and isnan() have been replaced with MI versions that work equally well. Prodded by: kris
* Mechanically kill hard sentence breaks.ru2004-07-022-6/+12
|
* Follow previous change in makecontext. Use %esi to store next ucpdavidxu2004-07-021-1/+1
| | | | | pointer, here we keep orignal %ebp, so we can see where signal handler comes in and interrupt normal code.
* Removed trailing whitespace.ru2004-07-021-10/+10
|
* Use %esi to store next ucp pointer. Mark end of stack bydavidxu2004-07-022-3/+4
| | | | | setting %ebp to zero, this avoids new gdb to dump a weird backtrace.
* Remove the code and an associated comment for gcc 1.x compatibilitydas2004-02-161-9/+1
| | | | and fix a typo in the !__GNUC__ case.
* Fix some aliasing problems.das2004-02-161-14/+19
|
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-101-3/+1
| | | | | | | | These files had tags after the copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* Define LDBL_MANH_SIZE and LDBL_MANL_SIZE to be the sizes of thedas2004-01-181-0/+3
| | | | high and low words of the mantissa in bits, respectively.
* Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'mnectar2004-01-095-15/+5
| | | | | | | | | | at it, use the ANSI C generic pointer type for the second argument, thus matching the documentation. Remove the now extraneous (and now conflicting) function declarations in various libc sources. Remove now unnecessary casts. Reviewed by: bde
* mdoc(7): Use the new feature of the .In macro.ru2003-09-081-1/+1
|
* Make getcontext(2) work on i386. It needs a small wrapper in libcpeter2003-09-042-2/+52
| | | | | | | | | | | | | | | | | | | | | | | otherwise the return from the syscall stub for getcontext will pop off the return value for the caller to the getcontext stub and it will appear as though the setcontext() syscall returned instead of the getcontext(). The same bug exists on amd64, a fix is coming there too. The bug can be demonstrated with this test code fragment: main() { ucontext_t top; if (getcontext(&top) == 0) { write(2, "PING!\n", 6); /* Cause a return value of 1 from getcontext this time */ top.uc_mcontext.mc_eax = 1; setcontext(&top); err(1, "setcontext() returned"); } write(2, "PONG!\n", 6); _exit(0); }
* Add the mlockall() and munlockall() system calls.bms2003-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - All those diffs to syscalls.master for each architecture *are* necessary. This needed clarification; the stub code generation for mlockall() was disabled, which would prevent applications from linking to this API (suggested by mux) - Giant has been quoshed. It is no longer held by the code, as the required locking has been pushed down within vm_map.c. - Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES to express their intention explicitly. - Inspected at the vmstat, top and vm pager sysctl stats level. Paging-in activity is occurring correctly, using a test harness. - The RES size for a process may appear to be greater than its SIZE. This is believed to be due to mappings of the same shared library page being wired twice. Further exploration is needed. - Believed to back out of allocations and locks correctly (tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC). PR: kern/43426, standards/54223 Reviewed by: jake, alc Approved by: jake (mentor) MFC after: 2 weeks
* Allow foot shooting as Linux emulation needs it.julian2003-08-041-1/+2
| | | | | | | | | Also change "Auto mode" to use a "special" value instead of 0, and define and document it. I had thought libpthread had already been switched to use auto mode but it appears that patch hasn't been committed yet. Discussed with: Davidxu
* Update manual for i386_set_ldt to reflect newly added features.davidxu2003-07-311-0/+34
| | | | Submitted by: julian
* Push the alloca #error warning farther down to play nicer with some out ofobrien2003-06-251-2/+4
| | | | | | tree local translator. Requested by: jmallett
* Only use this with a non-GCC compiler.obrien2003-06-141-0/+2
|
* Remove stale reference to the deprecated USER_LDT option. The associatedjhb2003-06-091-4/+0
| | | | | | | code is always compiled into the kernel now. Submitted by: Hubert Tournier <hubert@frbsd.org> PR: docs/53068
* Use C99 compatible ASM statements.obrien2003-06-021-1/+1
|
* Assorted mdoc(7) fixes.ru2003-05-221-6/+9
| | | | Approved by: re (blanket)
OpenPOWER on IntegriCloud