summaryrefslogtreecommitdiffstats
path: root/lib/libarch
AgeCommit message (Collapse)AuthorFilesLines
2018-07-09Delete the VM86 kernel option and i386_vm86(3) API: it's requiredguenther3-159/+3
a custom kernel for over 20 years. testing mlarkin@ ok deraadt@ phessler@ jca@ matthieu@
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandguenther1-4/+4
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.guenther4-184/+3
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.visa1-2/+2
OK deraadt@
2017-10-08Fix typo.visa1-3/+3
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenguenther1-2/+2
shortly when we use the hardware thread register in userland
2016-08-27Pull in <stdio.h> for NULLguenther1-2/+2
ok deraadt@
2016-08-10armish handled some early-gen arm machines, which required tons ofderaadt1-2/+2
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;jmc3-15/+15
2016-03-30for some time now mandoc has not required MLINKS to functionjmc4-16/+4
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);jmc1-3/+2
2016-03-24Delete i386_{get,set}_ioperm(2) APIs and underlying sysarch(2) bits.guenther4-220/+4
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.naddy4-221/+4
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()jca1-3/+2
2016-02-01ansify; ok sthen@ kettenis@jca6-20/+10
2015-09-14in the SYNOPSIS, make void function arguments explicitschwarze2-6/+6
2015-09-10use .In rather than .Fd #includeschwarze8-36/+36
2015-05-30Build with -mbwx rather than -Wa,-mev56 so that upcoming changes to the compilermiod1-2/+2
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.bentley1-3/+3
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>schwarze1-5/+4
2014-12-13Provide our own copy of {round,trunc}_page() now that uvm's is unreachable frommiod1-2/+4
non-_KERNEL code.
2014-11-15remove useless casts (and the comments saying lint complains about them)tedu9-23/+16
2014-07-16zap trailing newlines; "go for it" deraadtokan2-4/+2
2014-04-18It's been a quarter century: we can assume volatile is present with that name.guenther2-7/+7
2013-09-14- bit clearer about sysctls/securelevel (text lifted from i386_iopl(2))jmc1-4/+17
- 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;jmc1-3/+3
From: Jan Stary
2013-05-05since i386_{g,s}et_ioperm(2) are the same page, do not list them both injmc1-3/+2
SEE ALSO;
2013-05-05remove never implemented amd64 get/set ioperm sysarch. ok guenthertedu5-216/+6
2012-12-20include machine/cpu.h now that is isn't any longer pulled in indirectlynaddy2-2/+4
by sys/sysctl.h; ok deraadt@ millert@
2012-12-05Remove excessive sys/cdefs.h inclusionderaadt19-37/+17
ok guenther millert kettenis
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan1-2/+1
ok guenther@
2012-04-12tweak previous;jmc3-12/+12
2012-04-12Clarify thread-localness in the wake of rfork's removalguenther3-18/+28
2011-12-25Missing architecture on the .Dt line; found with mandocdb(8); ok jmc@.schwarze1-3/+3
2011-12-24formatting errors, found using freebsd's "igor";jmc1-3/+4
2011-04-13Unrevert the FS.base diff: the issues were actually elsewhereguenther1-4/+7
Additional testing by jasper@ and pea@
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesguenther1-7/+4
and the problem isn't obvious yet.
2011-04-05Add support for per-rthread base-offset for the %fs selector on amd64.guenther4-4/+186
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.guenther7-1/+366
In some sense, these are mainly to give names to hang manpages from.
2010-09-26add mips64 tags; ok miodjmc2-6/+6
2010-09-25fix Xrs;jmc1-14/+9
2010-09-24tweak previous;jmc1-10/+10
2010-09-24Provide IRIX-compatible get_fpc_csr() and set_fpc_csr() for mips, althoughmiod2-2/+71
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 dependentmiod1-3/+3
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.miod1-4/+4
Amazingly, compiler does not complain (lint does).
2009-09-27Add an implementation of IRIX-compatible cacheflush() routine to mips ports,miod3-2/+96
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, insteadmiod1-2/+2
of an incomplete MACHINE list.
2009-09-09Palm: Integration into the treemarex1-2/+2
OK deraadt@
2009-08-13We do not do vm86 mode on amd64deraadt2-158/+0
ok kettenis
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.ray14-118/+20
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@