summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-10-29Align to 32-bits instead of sizeof(long) which may be bigger. There is noCan Erkin Acar
practical value of aligning things to 64-bit and waste more space then necessary on some architectures. ok deraadt@
2010-10-28Inital commit of PCI and SATA support for OCTEONTakuya ASADA
2010-10-28Inital commit of PCI and SATA support for OCTEONTakuya ASADA
2010-10-28Fix a 'bstp still active' panic that happens if a stp enabledMarco Pfatschbacher
interface is destroyed while in the bridge. Fixed by using bridge_delete() which includes the missing bstp_delete() call: Less code and more consistency. Also fix SIOCBRDGDEL to return an error if an interface can not be found. OK claudio, markus.
2010-10-28Do not send route messages to userland processes that the kernelClaudio Jeker
rejects because of bad encoding. Userland processes trust that the messages on the rtsock are correctly encoded. Moved some checks up to do the suser() check as soon as possible. After discussion with deraadt@, OK deraadt@ and sthen@ (earlier version)
2010-10-28Normalize mbuf after prepending space for the header since the dataClaudio Jeker
in the mbuf my be improperly aligned. Whenever a function is reinjecting packets from low level output functions into high level output functions (like ip_output) it must be guaranteed that the mbuf data is properliy aligned. OK blambert@, deraadt@
2010-10-28Add m_print() a function to print mbuf headers. Can be called from ddbClaudio Jeker
with an mbuf pointer as argument to see the contents of it. OK thib@, deraadt@
2010-10-28cleanup ;;Theo de Raadt
2010-10-28improve look of ;; in a for loopTheo de Raadt
2010-10-28Regen for new getdirentries.Todd C. Miller
2010-10-28Change basep parameter of getdirentries() to be off_t *, not long *Todd C. Miller
so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
2010-10-28A function that only returns NULL should return void.Claudio Jeker
bstp_input() always consumes the packet so remove the mbuf handling dance around it.
2010-10-28support _SC_HOST_NAME_MAX; from bradTheo de Raadt
a libc crank is happening in < 24 hours
2010-10-27fix double ;;Theo de Raadt
2010-10-27Report proper pc address in siginfo; found the hard way by naddy@ and gcc 4.Miod Vallat
ok deraadt@
2010-10-27Fix a few logic errors in comparison instruction emulation: make sure theMiod Vallat
less than relation is correctly computed, and check for both operands being signaling NaNs, instead of only the first NaN found, to decide whether to raise an invalid exception or not.
2010-10-27improve the look of a for loopTheo de Raadt
2010-10-27don't free network related resources if they were not allocatedJacob Meuser
2010-10-27The previous two commits cannot be right. If in fact offsets > 4GB areTheo de Raadt
causing problems, then it is nonsense to instead fail at the 2GB line. Much more discussion needed.
2010-10-26Add task queue for ACPI gpe and notify handlersJordan Hargrave
This fixes eject on Dell Latitude dock and an issue on the Dell Mini battery update. ok deraadt
2010-10-26thib missed this architecture when he did all the other architectures;Theo de Raadt
ok thib jsing -- Move the MSIZE, MCLSHIFT, MCLBYTES and the MCLOFSET mbuf constants from MD param.h to MI param.h. Besides being the same on every arch, things will most probly break if any arch has different values then the others. The NMBCLUSTERS constants needs to be MD though; ok miod@,krw@,claudio@
2010-10-26The LDT is only used by dead compat code now, so load the ldtPhilip Guenthe
register with the null selector (disabling use of it), stop reloading it on every context switch, and blow away the table itself, as well as the pcb and pmap bits that were used to track it. Also, delete two other unused pcb members: pcb_usersp and pcb_flags. (Deleting pcb_usersp also keeps the pcb_savefpu member aligned properly.) Finally, delete the defines for the unimplemented AMD64_{GET,SET}_LDT sysarch() calls. Tested by various with both AMD and Intel chips ok mikeb@
2010-10-26enable vmt(4). hopefully it will get some use soon.David Gwynne
"sure." deraadt@
2010-10-26log suspends and resumes. resend hostname and address info from the guestDavid Gwynne
to the host on resume. from jonathan matthew reviewed and ok matthew@
2010-10-26big update to vmware tools functionality from jonathan matthew.David Gwynne
vmt(4) will now: - initiate shutdown by signalling init with SIGUSR2 when requested by the host. - initiate a reboot by signalling init with SIGINT when requested by the host. - report the guests hostname to the host - report the guests first non-loopback IP address to the host - report the guests uptime to the host - update the guests timedelta sensor using the 64bit rpc vmt(4) now does the majority of what people actually need. this has been tested on vmware server 2.0.2 with linux as the host, vmware esx 4.0, and vmware esx 4.1 testing by jonathan matthew and myself. previous versions of the changes were also tested by johan allard and srebrenko sehic. code reviewed by and ok matthew@ thanks moch and johan :)
2010-10-26Replace broken CF driver with new one, fixed bus_space base address.Takuya ASADA
2010-10-25move to static initializers for the ifnet/ifg_head TAILQ'sBret Lambert
fixes a race-based kernel crash under rare circumstances reported and fix tested by chefren att pi daht net ok claudio@ henning@
2010-10-25Iopoolification. Tested by mcbride@, dlg@, and Gabriel Kihlman on tech@.Kenneth R Westerback
ok dlg@
2010-10-24Move build_trampoline() and setregs() to a common location for all mips ports.Miod Vallat
2010-10-24Don't short-circuit userret() when returning from trap() in the rm7000Miod Vallat
performance counter code path (which is not enabled at the moment).
2010-10-23Fix pr 6192: make netinet/tcp.h follow SUSv4 namespace rules byPhilip Guenthe
hiding everything but the TCP_* options unless __BSD_VISIBLE. While we're here, change the structure to use u_int32_t instead of u_int to cut-off the types discussion. ok tedu@, mikeb@
2010-10-23regenDamien Bergamini
2010-10-23add a bunch of Realtek RTL8188CU/RTL8188CE/RTL8192CU usb ids.Damien Bergamini
2010-10-23Missed this in the last commit. No cookie for me.Paul Irofti
2010-10-23check that a timeout(9) has been initialized before deleting itJacob Meuser
ok phessler
2010-10-23create another kthread to run xfer abort tasks. xfer abort tasks cannotJacob Meuser
be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type. fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
2010-10-23remove PFR_FLAG_ATOMIC. not used, and doesn't work as advertised.Ted Unangst
ok henning
2010-10-23fix the two extremely retarded bugs that prevented the RT30XXDamien Bergamini
devices to work. shame on me. committed over an RT3071.
2010-10-23Unbreak SMALL_KERNEL. Reported by Mikolaj Kucharski, thanks!Paul Irofti
2010-10-23Add working compile directoryMiod Vallat
2010-10-22Attach the two run(4) usb ids that krw@ added to usbdevs.Damien Bergamini
"Feel free to commit!" krw@
2010-10-21There is no TCP6 in our kernel, so remove the #ifndef TCP6.Alexander Bluhm
No binary change. ok claudio@ henning@
2010-10-20Disestablish interrupts if attachment fails.Michael Knudsen
ok jakemsr
2010-10-19grow i386 inside media a teeny bitTheo de Raadt
2010-10-19Remove the LOG_MAKEPRI macro. It has been broken (the << 3 is wrong) sinceTheo de Raadt
the dawn of time. A few systems fixed^Hchanged it, thus breaking other code. Since the usage of it is now a mess, the right path from here on out is to *remove* the macro forever and cope with the (very minor) fallout. ok guenther tedu millert sthen
2010-10-19update initialization values for the Osprey 2.2.Damien Bergamini
see http://marc.info/?l=linux-wireless&m=128746728412954&w=2 for a list of changes.
2010-10-19Unify some error messages to simplify reset code. No functionalKenneth R Westerback
change. ok nicm@ From shadchin.
2010-10-18bFrameIntervalType affects frame rates, not frame sizesJacob Meuser
2010-10-18when configuring the streaming interface with the video probe andJacob Meuser
commit controls, use the hardware frame idenfitier instead of the software identifier since they can differ, and the hardware only knows about it's own identifiers
2010-10-18use setting with closest matching bandwidth for the current configurationJacob Meuser
instead of the first one that has enough bandwidth as it may be too much