summaryrefslogtreecommitdiff
path: root/lib/libarch
AgeCommit message (Collapse)Author
2021-09-17sys/param.h was only used for PAGE_MASK. use getpagesize() atTheo de Raadt
initialization instead.
2021-09-17sys/param.h is not needed by this fileTheo de Raadt
2021-05-01Retire OpenBSD/sgi.Visa Hankala
OK deraadt@
2018-07-09Delete the VM86 kernel option and i386_vm86(3) API: it's requiredPhilip Guenther
a custom kernel for over 20 years. testing mlarkin@ ok deraadt@ phessler@ jca@ matthieu@
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2018-01-07amd64_{get,set}_fsbase() are superfluous and unused; delete them.Philip Guenther
Delete unused/never-implemented sysarch defines and structs while here. ports check and ok naddy@ ok deraadt@ mlarkin@
2017-10-08Make cacheflush(3) and get_fpc_csr(3) manual pages available on octeon.Visa Hankala
OK deraadt@
2017-10-08Fix typo.Visa Hankala
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenPhilip Guenther
shortly when we use the hardware thread register in userland
2016-08-27Pull in <stdio.h> for NULLPhilip Guenther
ok deraadt@
2016-08-10armish handled some early-gen arm machines, which required tons ofTheo de Raadt
workarounds. Some of them will soon stand in the way of armv7. Off to the attic you go.
2016-03-30some Xr adjustment to catch up with MLINKS removal;Jason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-24no more i386_get_ioperm(2);Jason McIntyre
2016-03-24Delete i386_{get,set}_ioperm(2) APIs and underlying sysarch(2) bits.Philip Guenther
They're no longer used by anything and should let us simplify the TSS handling. ok mikeb@ naddy@
2016-03-03Remove option USER_LDT and everything depending on it.Christian Weisgerber
Remove machdep.userldt sysctl. Remove i386_[gs]et_ldt syscall stub from libi386. Remove i386_[gs]et_ldt regression test. ok mlarkin@ millert@ guenther@
2016-02-01ansify amd64_iopl()Jeremie Courreges-Anglas
2016-02-01ansify; ok sthen@ kettenis@Jeremie Courreges-Anglas
2015-09-14in the SYNOPSIS, make void function arguments explicitIngo Schwarze
2015-09-10use .In rather than .Fd #includeIngo Schwarze
2015-05-30Build with -mbwx rather than -Wa,-mev56 so that upcoming changes to the compilerMiod Vallat
will output proper .arch statements in its output. No functional change.
2015-02-15Use "In" to mark up include files, instead of wrongly wrapping with Aq.Anthony J. Bentley
Aq is not the same as <> in non-ASCII situations, so this caused incorrect output in some places. And it provided no semantics besides. ok schwarze@
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-12-13Provide our own copy of {round,trunc}_page() now that uvm's is unreachable fromMiod Vallat
non-_KERNEL code.
2014-11-15remove useless casts (and the comments saying lint complains about them)Ted Unangst
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-04-18It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
2013-09-14- bit clearer about sysctls/securelevel (text lifted from i386_iopl(2))Jason McIntyre
- EPERM only applies to _set_ioperm help kettenis original diff From: Paul Kelly
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-05-05since i386_{g,s}et_ioperm(2) are the same page, do not list them both inJason McIntyre
SEE ALSO;
2013-05-05remove never implemented amd64 get/set ioperm sysarch. ok guentherTed Unangst
2012-12-20include machine/cpu.h now that is isn't any longer pulled in indirectlyChristian Weisgerber
by sys/sysctl.h; ok deraadt@ millert@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-04-12tweak previous;Jason McIntyre
2012-04-12Clarify thread-localness in the wake of rfork's removalPhilip Guenthe
2011-12-25Missing architecture on the .Dt line; found with mandocdb(8); ok jmc@.Ingo Schwarze
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-04-13Unrevert the FS.base diff: the issues were actually elsewherePhilip Guenthe
Additional testing by jasper@ and pea@
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesPhilip Guenthe
and the problem isn't obvious yet.
2011-04-05Add support for per-rthread base-offset for the %fs selector on amd64.Philip Guenthe
Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
2011-03-12Provide wrappers for the new I386_{GET,SET}_{FS,GS}BASE sysarch() calls.Philip Guenthe
In some sense, these are mainly to give names to hang manpages from.
2010-09-26add mips64 tags; ok miodJason McIntyre
2010-09-25fix Xrs;Jason McIntyre
2010-09-24tweak previous;Jason McIntyre
2010-09-24Provide IRIX-compatible get_fpc_csr() and set_fpc_csr() for mips, althoughMiod Vallat
we don't provide the silly union to decompose the value. This will allow userland to flip the ``flush denormalized to zero'' setting, which apparently is being relied upon by tcl. Asked by jasper@ a long time ago. Riding upon the upcoming libc major crank.
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentMiod Vallat
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
2009-10-01Do not `return' in void functions.Miod Vallat
Amazingly, compiler does not complain (lint does).
2009-09-27Add an implementation of IRIX-compatible cacheflush() routine to mips ports,Miod Vallat
needed for gcc -ftrampoline operation as well as by some third-party software. Although the implementation uses the sysarch() sysctl, the wrapper is added to libc as it was a direct system call (which it is on IRIX).
2009-09-24Test for MACHINE_ARCH to decide whether to build stuff in libarch/arm, insteadMiod Vallat
of an incomplete MACHINE list.