summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-05-05map the ATA data set management stuff (ie, trim) to the SCSI thinDavid Gwynne
provisioning bits in read cap 16
2010-05-03Provide a disk_map() function which attempts to map a disklabel UID to theJoel Sing
actual device. If successful, the real path is returned via mappath. Soon to be used by several other diffs. ok krw@
2010-05-02Properly initialize the members of `struct mdproc' that deal withMark Kettenis
single-stepping when we fork and reset them upon exec. ok miod@
2010-05-02The line-discipline-specific ioctls return -1 to indicate thatStefan Sperling
the non-line-discipline-specific ioctl handler should be tried. So changing these to return ENOTTY was wrong. Noted on misc@ because of resulting pppd log spam (but it didn't break anything serious): http://marc.info/?l=openbsd-misc&m=127258856501621&w=2 ok sthen@, miod@
2010-05-02The Cyrix "coma bug" workaround code has a really convoluted way to write 0Mark Kettenis
into a magic register. Simplify the code by making this explicit, but keep the dummy read just in case this has a magic side-effect. And yes, as far as I can tell, writing 0 is really what was intended here. Makes gcc4 happy. No binary change with gcc3. ok jsg@
2010-05-02Remove unused softc member.Miod Vallat
2010-05-02Precompute the userland process apr cache bits into a global variable.Miod Vallat
On AViiON systems with the 6:1 CMMU:CPU configuration, force cached mappings to be writethrough - this probably hides a bug in the code, but that's the only way so far to get such a system running stably.
2010-05-02Use intermediate vaddr_t cast when casting a pointer to off_t. PreventsMark Kettenis
gcc4 from complaining about casting a pointer to an integer type of different size. ok guenther@, jsg@
2010-05-02repeated text in a comment, spotted by adam dutkoTed Unangst
2010-05-02Add defines for thread-local-storage sections/symbols/segments and forPhilip Guenthe
the DT_1_FLAGS .dynamic entry and its known flag values. Remove the unused and useless STT_NUM and PT_NUM defines. ok miod@
2010-05-01put the read macros into functions so gcc4 doesn't whinge.Jonathan Gray
ok marco@ oga@ miod@
2010-05-01Unbreak ramdisks.Owain Ainsworth
I forgot that uvm_object.c wasn't build if SMALL_KERNEL. Fix this by building the file unconditionally and only building the less used functions when SMALL_KERNEL is not defined. unbreaks ramdisk build. ok jsg@
2010-05-01incomming -> incomingMichael Knudsen
The ones found in gnu/ left out by intention. ok jmc
2010-04-30Right now, if anything internal changes with a uvm object, diverseOwain Ainsworth
places in the tree need to be touched to update the object initialisation with respect to that. So, make a function (uvm_initobj) that takes the refcount, object and pager ops and does this initialisation for us. This should save on maintainance in the future. looked good to fgs@. Tedu complained about the British spelling but OKed it anyway.
2010-04-30Prevent a possible case of lock recursion in swapoff.Owain Ainsworth
If when we have successfully swapped an aobj back in, then we release our reference count, and that reference is the last reference, we will free the the aobj and recursively lock the list lock. Fix this by keeping track of the last object we had a reference on, and releasing the refcount the next time we unlock the list lock. Put a couple of comments in explaining lock ordering in this file. noticed by, discussed with and ok guenther@.
2010-04-30Add __unused and __used macros that expand to appropriate __attribute__Mark Kettenis
expressions depending on the GCC version in use. Use __unused to supress warnings from GCC's -Wunused options, and use __used to prevent code from being optimized away. From NetBSD. ok tedu@, marco@
2010-04-30add HT Capabilities element in outgoing probe requests if HT isDamien Bergamini
enabled (it is not enabled yet.)
2010-04-30fix for 5GHz band.Damien Bergamini
2010-04-30add support for firmware images in "type-length-value" format.Damien Bergamini
2010-04-30Remove volatile from function return values since gcc4 complains about themMark Kettenis
and they don't make any sense (the old deprecated GCC way of marking noreturn functions is surely not what was meant here). ok jsg@, guenther@, marco@
2010-04-30Add commented MPLS and mpe(4) entries.Claudio Jeker
OK sthen, jsg
2010-04-30- regenJasper Lievisse Adriaanse
2010-04-30- add a fore more devices found in my boxJasper Lievisse Adriaanse
2010-04-30unbreak dumps on scsi disks.David Gwynne
discovered by oga@
2010-04-29Revert r1.80, leaving iopools in place. Fixes PR#6365. Why WD3200KS-00PKenneth R Westerback
disks on ATI SBx00 care is mysterious but let's keep them working. Fix tested by Josh Elsasser, submitter of PR#6365. Thanks! ok dlg@
2010-04-29add radeon hd2600 xtRobert Nagy
2010-04-29regenRobert Nagy
2010-04-29Add the CR_PAT MSR to the list of defined msrs.Owain Ainsworth
"Absolutely, don't forget i386" kettenis@.
2010-04-29use BUS_SPACE_MAP_PREFETCHABLE on maps that should be WC (soon this willOwain Ainsworth
actually do so).
2010-04-29Currently pdc_scanbus() scans in reverse, which results in physical CPU0Joel Sing
attaching as cpu1 and physical CPU1 attaching as cpu0. Split the device scan into two parts - the first pass scans forward and attaches memory and CPUs, whilst the second pass scans in reverse attaching the remaining devices, thus preserving current semantics. Found the hard way whilst trying to spin up the secondary CPU on my j6750. ok miod@ kettenis@
2010-04-29Use per CPU hardware interrupt mask.Joel Sing
ok kettenis@
2010-04-29Finally fix the bit 17 swizzling code.Owain Ainsworth
- pmap_kremove takes a va and a size, not a va range (unlike pmap_remove, that gratuitious difference is nothing if not annoying). - fix a memory leak of the bit 17 bitstring. - fix the offset calculation when iterating through the dma segments. Tested by Brandon Mercer, his machine now seems to be rock solid. Remember kids, if a code path has not been tested fully, it does not work!
2010-04-29Test bit is used like a boolean, so it must actually be a boolean.Owain Ainsworth
This was causing swizzling on bit 17 swizzling intel IGDs when not needed. Thanks to Brandon Mercer for testing.
2010-04-29Fix the drm_atomic macros to use unsigned int like they should.Owain Ainsworth
pointed out by Clang static analyser.
2010-04-29Store hardware timer information per CPU.Joel Sing
ok kettenis@
2010-04-29- regenJasper Lievisse Adriaanse
2010-04-29- add a few more devices, including one from eric@Jasper Lievisse Adriaanse
2010-04-29- add another run, from markus bergkvistJasper Lievisse Adriaanse
2010-04-29- add another run, from markus bergkvistJasper Lievisse Adriaanse
2010-04-28We no longer need -Di386.Mark Kettenis
ok deraadt@
2010-04-28s/i386/__i386__/, no binary change.Mark Kettenis
2010-04-28Only invoke setcurcpu() #ifdef MULTIPROCESSORMiod Vallat
2010-04-28s/amd64/__amd64__/, s/i386/__i386__, no binary change.Mark Kettenis
2010-04-28s/i386/__i386__/, no binary change.Mark Kettenis
2010-04-28Do not modify hardware interrupt mask when establishing a soft interruptJoel Sing
handler. Also, do not allow a hardware interrupt handler to be established for a soft interrupt. ok kettenis@
2010-04-28Storeing current cpu_info address into LLAddr register, for curcpu().Takuya ASADA
Instead of previous implementation, we won't use physical cpuid to fetch curcpu(). This requires to implement IP27/35 SMP. Implemented getcurcpu() and setcurcpu() for it, smp_malloc() renamed alloc_contiguous_pages() because now it only allocate by page. ok miod@
2010-04-28no need to depend on a file twiceTheo de Raadt
2010-04-28clean up more more subtle and stupid differences between the variousTheo de Raadt
Makefile.* files
2010-04-28When setting a disklabel automatically generate a new UID if it does notJoel Sing
already have one. ok krw@
2010-04-28Cast 'a' to (void *) in the REASON_SET macro. Makes gcc4 happy.Robert Nagy
ok henning@