summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2010-12-15Bring CBC oracle attack countermeasure from r1.32 of cryptosoft.c toMike Belopuhov
the hardware crypto accelerator land. This fixes aes-ni, via xcrypt, glxsb(4), hifn(4), safe(4) and ubsec(4) drivers. Original commit message by angelos: Don't keep the last blocksize-bytes of ciphertext for use as the next plaintext's IV, in CBC mode. Use arc4random() to acquire fresh IVs per message. with and ok deraadt, ok markus, djm
2010-12-15enable uticom(4) now it is known to workJonathan Gray
2010-12-15oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinksTed Unangst
its better as a per arch MD define anyway. all default to MAXDSIZ as before.
2010-12-15add a BRKSIZ define and use it for the heap gap constant, decouplingTed Unangst
heap gap from max data size. nothing else changes yet. ok deraadt
2010-12-11rsu(4), a driver for Realtek RTL8188SU, RTL8191SU and RTL8192SUDamien Bergamini
802.11n USB devices. These are FullMAC devices that require a firmware to operate; see man page for details. Great thanks to Brad for donating hardware. Committed over the TRENDnet TEW-649UB. ok deraadt@
2010-12-07bring src/sys/arch/amd64/amd64/dkcsum.c r1.16 over to i386:David Gwynne
the boot loader passes a variable that identifies the disk its booting off made up of a bunch of fields like adapter, controller, disk, and partition offsets, plus a table of all the disks it can see which includes this id and a checksum. the kernel goes through and checksums the disks and then maps that back to the id associated with that disk, and then compares some of the fields in those ids against the boot disks id to figure out which disk its on. the problem is we overflow one of those fields (the disk id one). since the other fields are set to 0 by the boot loader, this doesnt really matter that much. however, since those fields are now significant because of the overflow, we should compare them too. this prevents sd16 being matched as the boot disk after sd0 on my system with 25 disks attached. ok krw@ weingart@ ithe boot loader passes a variable that identifies the disk its booting off made up of a bunch of fields like adapter, controller, disk, and partition offsets, plus a table of all the disks it can see which includes this id and a checksum. the kernel goes through and checksums the disks and then maps that back to the id associated with that disk, and then compares some of the fields in those ids against the boot disks id to figure out which disk its on. the problem is we overflow one of those fields (the disk id one). since the other fields are set to 0 by the boot loader, this doesnt really matter that much. however, since those fields are now significant because of the overflow, we should compare them too. this prevents sd16 being matched as the boot disk after sd0 on my system with 25 disks attached. requested by deraadt@ ok krw@ weingart@
2010-12-06- properly remove NENTS now after fixing the fallout.Jasper Lievisse Adriaanse
ok deraadt@
2010-12-06- partially revert previous NENTS removal for arches which got busted.Jasper Lievisse Adriaanse
2010-12-06- use consistent 'include' rules without a full relative path.Jasper Lievisse Adriaanse
tested on a GENERIC config from all arches. ok deraadt@ miod@
2010-12-06- drop NENTS(), which was yet another copy of nitems().Jasper Lievisse Adriaanse
no binary change ok deraadt@
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-12-02After the most recent change, make it possible to make -j again. TheTheo de Raadt
early MD and late MI files must be split up so that vers.o can sneak between. Issue spotted by bluhm, repair discussed with miod
2010-12-02move vers.o to before the other objects, so that it is not linked last.Theo de Raadt
having it linked last is bad (on at least i386 and amd64) because the lapic is mapped over the start of the data segment -- savecore(8) then reads the version string for a fixed buffer space, and reads into the lapic area causing unintended side-effects (at least on Intel X5570 and X5680) found by pedro, discussed with kettenis and mpf and miod
2010-11-30Extend bitmasks to 64-bit such that we can support up to 64 CPU cores.Mark Kettenis
ok jsing@
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-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-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-23removed slot argument of function pckbc_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok krw@, miod@
2010-11-22Remove unused (and dummied) bios console routines.Miod Vallat
2010-11-20typoMiod Vallat
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-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-20__attribute__((packed)) -> __packed. The ioprbs.c chunk was commented out, andMiod Vallat
uncommenting it is intentional. ok deraadt@
2010-11-18Don'tMiod Vallat
#include "foo.h" #if NFOO > 0 (whole file) #endif since config(8) file inclusion rules already do it for you. ok deraadt@
2010-11-18Do not #include <sys/dkstat.h> if you don't need anything from it.Miod Vallat
ok krw@ deraadt@
2010-11-12Push all potential (as in, all system MI not utilized by the bootblocks)Theo de Raadt
.h files into the ctags run as well to bring #define's and structs and such into scope. Problem reported by thib
2010-11-05urtwn(4), a driver for Realtek RTL8188CU/RTL8192CU 802.11n USB devices.Damien Bergamini
these devices are different from the RTL8191SU/RTL8192SU ones that are not supported by this driver. requires a firmware (urtwn-firmware-1.0) committed over a Hercules HWNUp-150 (RTL8188CU). ok deraadt@
2010-11-03no need to specify the -t flag to ctagsTheo de Raadt
2010-11-03only let vmt match and therefore attach if mainbus is specifically askingDavid Gwynne
for vmt to attach after vmt_probe succeeds. this prevents vmt from appearing at other attach points hanging off mainbus. found by phessler@ and debugged gently by claudio@
2010-10-26enable vmt(4). hopefully it will get some use soon.David Gwynne
"sure." deraadt@
2010-10-19grow i386 inside media a teeny bitTheo de Raadt
2010-10-14Move glxpcib(4) to MI land unifying the two MD drivers.Paul Irofti
Specific features of the companion chip will be handled in MD land. Okay deraadt@.
2010-10-13do the same thing for the cd:Mike Belopuhov
shave some bytes off the ramdisk kernels by disaling a bunch of custom pci to isa bridge drivers. pcib(4) will cope with the loss. suggested by brad, deraadt agrees, so does kettenis
2010-10-13shave some bytes off the ramdisk kernels by disaling a bunch ofMike Belopuhov
custom pci to isa bridge drivers. pcib(4) will cope with the loss. ok deraadt
2010-10-06Save and restore the lapic Task Priority register accross suspend/resume,Mark Kettenis
otherwise we wake up at IPL_NONE instead of IPL_HIGH. ok deraadt@
2010-10-06Correct the condition under which the x_wakeup_vector is cleared.Theo de Raadt
ok mlarkin
2010-10-04add support for midi(4) ports to envy(4)Alexandre Ratchov
2010-10-02turn off lid suspend if we doing halt -pTheo de Raadt
ok kettenis marco miod
2010-10-02unneccessary check before calling cpu_unidle; Vladimir KirillovTheo de Raadt
2010-10-02Ensure the caches are wbinvd'd before we say that the cpu is not runningTheo de Raadt
anymore. ok kettenis
2010-10-02make ci_flags volatile; some future MD code will depend on this.Theo de Raadt
ok kettenis
2010-09-29Back out previous, it appears to be broken.Joshua Elsasser
2010-09-29When reading MXCSR from userland sigcontext, mask out invalid bits.Joshua Elsasser
This prevents a protection fault if a userland signal handler scribbles all over it's struct sigcontext Help from and ok guenther@ kettenis@
2010-09-28Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,Miod Vallat
to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-24Add stricter asserts to DIAGNOSTIC kernels to help catch mutex andMatthew Dempsky
rwlock misuse. In particular, this commit makes the following changes: 1. i386 and amd64 now count the number of active mutexes so that assertwaitok(9) can detect attempts to sleep while holding a mutex. 2. i386 and amd64 check that we actually hold mutexes when passed to mtx_leave(). 3. Calls to rw_exit*() now call rw_assert_{rd,wr}lock() as appropriate. ok krw@, oga@; "sounds good to me" deraadt@; assembly bits double checked by pirofti@
2010-09-24Fix bus space mapping bugs for GPIO's and MFGPT's and while at it add properPaul Irofti
defines for the constants used while mapping. Okay miod@, deraadt@.
2010-09-23enable utwitch(4) (formely uyurex(4)) by defaultYojiro Uo
ok deraadt@
2010-09-22Add a new interface pppx(4) -- the ppp multiplexer to be used with npppdClaudio Jeker
and pipex. pppx(4) creates an interface whenever a session is created so that altq and pf can work on these. Started by dlg@ debugged and made usable by myself OK dlg@ yasuoka@ deraadt@
2010-09-22Fix ramdisks, from Vladimir Kirillov. Thanks!Paul Irofti