summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-05-09shuffle an extern around so gcc4 doesn't whinge about incomplete typesJonathan Gray
as suggested by miod. ok miod@
2010-05-09Handle .rodata.* sections emitted by gcc4 the same way as .rodata and .rodata1.Mark Kettenis
2010-05-09Make i386 use a pointer to the trap frame like everybody else instead ofMark Kettenis
the weird "pass by reference" that causes problems with gcc4. ok nicm@, tom@
2010-05-08disk_busy()/disk_unbusy() dance; from NetBSD.Miod Vallat
2010-05-08Huge work-in-progress commit to support Loongson 2E-based evaluation boardsMiod Vallat
with a VIA 686 southbridge. Features: - 686 setup code (no thanks to PMON for not initializing the beast). - work in progress ISA interrupt handling code. - support for vga(4) compatible devices as console, in PC-compatible text mode. - move legacy (ISA) support code out of bonito(4) to make things clearer. - support more than 256MB on 2E-based systems. Tested on a generic 2E-based evaluation board by someone who wishes to remain anonymous; you know who you are, thank you very much for testing.
2010-05-08Defines for the Intel 8259 PIC and compatible designs, because hardwiredMiod Vallat
numbers are a PITA in the long run; from NetBSD.
2010-05-08A little bit of a hack.Owain Ainsworth
If userland asks to allocate an object large enough that two that size could not fit around the pinned objects, disallow it with EFBIG. This prevents mmap of large objects that big and copying between them putting the machine into infinite thrashing. with a patch to the ddx (on my git branch) that allocates a non-accelerated pixmap when it gets that return code, matthieu@s test huge image works happily when before it DOSed the kernel. The correct fix would be to fall back to mmaping the backing pages for objects that big (radeondrm will need such ability anyway). This however is a lot more complicated and I am still working out how to do it correctly hence this commit for now.
2010-05-08Set the write combined bit on our newly created pages.Owain Ainsworth
We need a proper MI api for doing this (one which will fall back to mtrrs if PAT is not available would be best), but for now this allows inteldrm to use PAT if available. Big fat XXX mentioning the need for a real api. ok kettenis@, tedu@
2010-05-08Page Attribute Tables (PAT) support for x86.Owain Ainsworth
PAT allows setting per-mapping cachability bits. Our main interest in it for write combining mappings so we do not have to rely so heaviliy on mtrrs (which are stupidly set up on more and more machines). MD flags to pmap allow setting these bits (which bus_space now uses for PREFETCHABLE maps), if a vm page has a bit set, then we will use WC for all mappings of a page (used for userland mappings). We also check for known errata and fall back to UC- mappings in that case. comments from kettenis@, tedu@ and william@. kettenis@, tedu@ ok.
2010-05-08Upon changing the MAC address of an if_trunk interface, all ports are switchedStefan Sperling
to the new MAC. But subsequently added ports were still being assigned the old MAC address because it was copied from the wrong place. Give newly added trunk ports the current MAC of the master port, rather than the saved MAC of the master port. The saved MAC should only be used to restore the original MAC address of the interface when it is removed from the trunk. ok claudio@
2010-05-08While handling SIOCSIFLLADDR, after adjusting the MAC of the interface,Stefan Sperling
call the interface-specific ioctl handler as well in case the driver needs to do something special. E.g. if_trunk expects this in order to update MAC addresses of its trunk ports. If you now see "Inappropriate ioctl for device" errors after running "ifconfig $if lladdr random" please let me know. Most likely the ioctl handler of the driver needs fixing. ok claudio@, "I only count half an ok for networking" tedu@
2010-05-08During IPv6 source address selection, prefer RFC 4941 temporary addressesStefan Sperling
over other addresses configured on the same interface. Facilitates peaceful coexistence of temporary addresses for outgoing connections and static addresses for incoming connections. Fix typo in comment while here. ok claudio@
2010-05-07fix packed use as pointed out by gcc4.Jonathan Gray
ok kettenis@
2010-05-07Start cleaning up the mess called rtalloc*. Kill rtalloc2, make rtalloc1Claudio Jeker
accept flags for report and nocloning. Move the rtableid into struct route (with a minor twist for now) and make a few more codepathes rdomain aware. Appart from the pf.c and route.c bits the diff is mostly mechanical. More to come... OK michele, henning
2010-05-07order the network pseudo-devices by name. Move pppoe and sppp into that list.Claudio Jeker
OK kettenis, krw, dlg
2010-05-07Remember to restore the spl. Found out the hard way by me.David Hill
ok @damien
2010-05-06Move the net/bpf.h include done and wrap it in the ususal #if NBPFILTER > 0Claudio Jeker
block as done in other drivers. Based on an old diff by Gleydson Soares.
2010-05-06Change trap() and syscall() to accept a pointer rather than using callNicholas Marriott
by reference for the trap frame, the infrastructure in locore.S for this was already present. This prevents gcc4 from optimising away stores into the frame and allows a gcc4-compiled kernel to boot. ok kettenis robert guenther
2010-05-06Ansify functions and use "clock" rather than the CPU name for clockJoel Sing
interrupts. ok kettenis@
2010-05-06Count the number of CPUs in the system.Joel Sing
ok kettenis@
2010-05-06Remove the incorrect if_media code. It is no longer needed to show and trackClaudio Jeker
link states. Additionally do not up the interface when opening the device. Resulting in the same behaviour as on real ethernet interfaces. OK sthen
2010-05-06Fix favail format string.Marco Pfatschbacher
From mickey. OK thib, otto.
2010-05-05Prevent a process from entering iwn_ioctl while another process isDamien Bergamini
tsleep'ing (for example waiting for the firmware to become alive) in iwn_init. I believe this might fix a crash reported by dhill@ This is a temporary fix until I find something better that I will apply to my other drivers that can tsleep in if_init (wpi, run etc...)
2010-05-05firmware images in type-length-value format can now offer differentDamien Bergamini
alternatives in a same image.
2010-05-05regenDamien Bergamini
2010-05-05Since we never set the X bit for directly mappings, nothing can be moved intoMark Kettenis
the instruction cache through them. So we don't need to flush the instruction cache and purge instruction TLBs for these mappings. ok jsing@, miod@
2010-05-05USB Id for Atheros AR3011 bluetooth adapter.Damien Bergamini
A firmware must be loaded into the device to enable it though.
2010-05-05disable bluetooth coexistence as I suspect this is what is causingDamien Bergamini
troubles to some people with AR9285+AR3011 combo adapters.
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