summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-11-27Remove ddb single-step load and store counters. Most platforms do notMiod Vallat
implement them, and they are of questionable usefulness.
2010-11-27Misaligned load/store recovery code in the kernel, enabled by T_FIXALIGNMiod Vallat
userland traps on a per-process basis, were necessary for *some* SunOS binaries on sparc, which had to compiled with explicit misaligned access code generation (i.e. for vendors to release a working SunOS/sparc version of their code until they could fix their bogus code). There is no reason to keep this code on sparc64, and now that we don't provide COMPAT_SUNOS anymore, there is no reason to keep this code on sparc. ok kettenis@
2010-11-27Remove unused vgafb_cnprobe().Miod Vallat
2010-11-27Missed one rbus_new_body() call in previous change.Miod Vallat
2010-11-27Make sure kcopy() returns EFAULT instead of -1 upon failure on vax, andMiod Vallat
fix outdated comments suggesting kcopy() will return -1.
2010-11-27Make sure we don't attach more CPUs than we can handle. Prevents anMark Kettenis
out-of-bounds array access later on. Allows OpenBSD to boot on machines with more than 32 CPUs/cores. ok krw@, jsing@, dlg@
2010-11-27Increase UVIDEO_MAX_FRAME to 32 to support 28 possible frame types onPaul de Weerd
Logitech HD Pro Webcam C910 (and probably others) to make it work. Debugging, suggested and ok jakemsr@
2010-11-27regenPaul de Weerd
2010-11-27Another cam: Logitech HD Pro Webcam C910Paul de Weerd
ok jakemsr@
2010-11-26In gfxp_copyrect(), make sure that the - possibly negative - coordinate ↵Miod Vallat
fields, which are supposed to be 16 bit values, are properly masked to avoid polluting other fields. From NetBSD; ok kettenis@
2010-11-26Oops, removed a few lines too many in previous change.Miod Vallat
2010-11-26Disable uscanner(4) by default on all kernels which configure it. First stepMiod Vallat
until possible removal, if indeed this causes no regression for scanner users.
2010-11-26more useful logging level for demotion adjustmentsOtto Moerbeek
ok mcbide@ claudio@ henning@
2010-11-26Nuke the unused variable cpus_attached. It is unused and 32 bitsKenneth R Westerback
aren't enough to keep track of possible cores these days anyway. 36-core amd64 box encountered by dlg@ ok dlg@ kettenis@
2010-11-24Floating-point emulation code for systems lacking proper FPU (i.e. Octeon),Miod Vallat
enabled by option FPUEMUL. This is pretty straightforward, except for conditional branch on FPU condition codes emulation (bc1f/bc1fl/bc1t/bc1tl instructions): unlike most RISC-with-delay-slots designs (m88k, sparc), the branch pipeline is not exposed to the kernel on Mips, therefore we can not resume a branch without losing the delay slot instruction. Some other operating systems work around this issue by emulating the delay slot instruction, but this is error-prone (and requires the kernel code to be aware of all supported instructions of the processor it is currently running on), some use dedicated breakpoints to single-step through the delay slot and then resume the branch as expected, but this causes a lot of copy-on-write allocations. This code chooses a third path, of copying the delay slot instructions to run toa special `magic' page, followed by a special trap instruction to give control back to the kernel. This makes sure the instruction will actually be run by the processor, and that no more than one page per process is wasted, regardless of the number of branches to emulate. Tested on octeon (big-endian) by syuu@ and on loongson (little-endian) by me. Note that enabling option FPUEMUL in the kernel will completely disable the hardware FPU, if there is one; there is currently no way to build a kernel supporting both hardware and software FPU, and there is no reason to change this until there is a strong need to support both.
2010-11-24Allow MD code to setup MD-specific mappings (kinda similar to the signalMiod Vallat
trampoline) in sys_execve(), if MD <machine/_types.h> defines __HAVE_EXEC_MD_MAP.
2010-11-24Make sure ptrace_sstep(,0) actually clears breakpoints, by replacing theMiod Vallat
ptrace guts with a logic similar to what the alpha port does.
2010-11-24Implement a real pmap_proc_iflush() instead of relying on trap.c to performMiod Vallat
copious cache flushes behind our back.
2010-11-24- use *un*signed byte array for control dataJacob Meuser
- use UGETW/USETW instead of letoh16/htole16 fixes controls that use two-byte signed data (e.g. brighness and hue) on sparc64
2010-11-24Ensure that hw.disknames gets updated whenever a disklabel is set, sinceJoel Sing
the disklabel UID may have changed. ok krw@ deraadt@
2010-11-24malloc the temporary struct pppx_if used in pppx_if_find (it's currentlyStuart Henderson
only called from pppx_del_session); lets an amd64 pppx kernel build (otherwise we hit excessive stack use warnings with -Werror). if this ends up being called more frequently in future, then dlg suggests making it static instead. ok claudio@
2010-11-23passing stack pointer to secondary processorsTakuya ASADA
2010-11-23Correct interrupt handlingTakuya ASADA
2010-11-23regenKevin Lo
2010-11-23Recognize the Marvell PHYG65G Gig PHY; tested by Frans HaarmanKevin Lo
From FreeBSD ok deraadt@
2010-11-23removed slot argument of function pckbc_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok krw@, miod@
2010-11-22Remove old comment about constab[] being eventually generated by config(8).Miod Vallat
This has never happened and this wouldn't make much sense on anything but hp300, if at all, nowadays.
2010-11-22Use cons_decl() to get console routine prototypes, instead of rolling our own.Miod Vallat
2010-11-22Remove bus_space_probe prototype, this function is not implemented.Miod Vallat
2010-11-22Remove unused (and dummied) bios console routines.Miod Vallat
2010-11-22Remove old pcons leftover defines.Miod Vallat
2010-11-22Remove prototypes for missing (removed) functions or already found in aMiod Vallat
MI header file.
2010-11-22Remove unused VM_MAX_KERNEL_BUF define.Miod Vallat
2010-11-22SCSI devices are assumed to be T_FIXED unless they say otherwise.Kenneth R Westerback
cd(4) did not believe any T_FIXED device was its responsibility. Thus when a USB CD forgot to mention that it is T_REMOV, it appeared as uk(4). Make cd(4) accept even T_FIXED devices that claim to be T_CDROM or T_WORM. Noticed and fix tested by Rene Maroufi. Closes PR #6513.
2010-11-21adding timer randomness in ioctl doesn't really help and looks suspicious.Ted Unangst
ok deraadt
2010-11-21Properly handle when uhci_alloc_sqh() fails to allocate memory inMatthew Dempsky
uhci_device_setintr(). ok jakemsr@
2010-11-20throw some yields into the pf table code so it doesn't lock up the kernel.Ted Unangst
ok deraadt henning
2010-11-20typoMiod Vallat
2010-11-20Change wsdisplay_kbdinput() to get an aray of keysym_t and a count, instead ofMiod Vallat
a single keysym_t at a time - this means tty sanity checks will only happen once. Introduce wsdisplay_rawkbdinput() for raw mode input, since raw input is a byte array. As a bonus this allows us to skip the `is this a KS_GROUP_Ascii value' test in that case.
2010-11-20Replace all mentions of sc_base.me_dispdv with sc_displaydv. The latter is aMiod Vallat
short #define for the former, and seeing both forms in this file is confusing.
2010-11-20This is a first step towards getting rid of avail_start and avail_end in theMiod Vallat
kernel, currently limited to low-hanging fruit: these variables were used by bus_dma to specify the range in which to allocate memory, back when uvm_pglistalloc() was stupid and would not walk the vm_physseg[]. Nowadays, except on some platforms for early initialization, these variables are not used, or do not need to be global variables. Therefore: - remove `extern' declarations of avail_start and avail_end (or close cousins, such as arm physical_start and physical_end) from files which no longer need to use them. - make them local variables whenever possible. - remove them when they are assigned to but no longer used.
2010-11-20Make sure we do not overrun the memory ranges array, should the booterMiod Vallat
give us more ranges than we expect.
2010-11-20Check uvm_km_alloc() return values; pmap_fork() will currently panic,Miod Vallat
while i386_set_ldt() can fail gracefully. To be improved eventually. From mpech@ sometime ago. ok deraadt@ kettenis@
2010-11-20Remove unnecessary empty <machine/psl.h> files on arm-based platforms.Miod Vallat
2010-11-20Do not attempt to include <machine/psl.h> when including this file fromMiod Vallat
assembly code (_KERNEL && _LOCORE)
2010-11-20__attribute__((packed)) -> __packed. The ioprbs.c chunk was commented out, andMiod Vallat
uncommenting it is intentional. ok deraadt@
2010-11-20Missing splx() in hil_thread(). This turned out to be harmless due to theMiod Vallat
way this code works (always ends up in tsleep eventually), but it never hurts to be correct.
2010-11-20remove bs_list occurrences. fixes panic on destroy.Federico G. Schwindt
ok from the m guild: mikeb@ miod@ mpf@
2010-11-20some more installboot cleanup from gapz@dud-t.orgTheo de Raadt
2010-11-20clean up cases of ;;Theo de Raadt