summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-11-05Minor code cleanups. No functional change. From Alexandr Shadchin.Kenneth R Westerback
ok nicm@
2010-11-05Sync a bunch of USB devices from i386 to macppc, compiles, butDale Rahn
devices not tested. Not going to get tested unless they are available.
2010-11-05Implement m_print as real ddb command "show mbuf addr" in the way otherClaudio Jeker
such commands are implemented. "Ja! You'll need to update ddb.4 as well, of course." miod@
2010-11-04Filter out reserved destination MAC addresses (01:80:C2:00:00:0x) asPaul de Weerd
per the 802.1D-2004 spec. With lots of help and guidance (and some nagging) from claudio. Tested with net/ladvd port on i386 and amd64. 'be a man' claudio@, ok mpf@
2010-11-03no need to specify the -t flag to ctagsTheo de Raadt
2010-11-03pool_sethardlimit should not imply pool_sethiwat; figured out with claudioMike Belopuhov
ok claudio tedu
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-11-02Make error message specify if a REQUEST SENSE has timed out, not theKenneth R Westerback
original command. Return xs->error = XS_SENSE, when REQUEST SENSE times out, rather that XS_TIMEOUT. Reduces many useless retries of commands getting sense errors.
2010-11-02Add DEBUG0 printf() for unexpected reselects. No functional change.Kenneth R Westerback
2010-11-02Consolidate duplicated code removing things from the 'going' queue.Kenneth R Westerback
No functional change.
2010-11-02Clean up some printf's, most but not all in DEBUG0 blocks, by usingKenneth R Westerback
sc_print_link() properly and consistently. No functional change.
2010-11-02Include <sys/time.h> such that <sys/resource.h> becomes usable on its own asMark Kettenis
required by POSIX X/Open extensions for quite a while now. ok millert@, guenther@, deraadt@
2010-11-02export the network livelock counter. part of a diff i committed theDavid Gwynne
userland side of. pointed out by claudio@ after i embarassed myself saying "yes, its there!"
2010-11-01use the amd64 name for this frame, instead of the i386 name, to bePeter Hessler
consistent with the rest of the file. requested to be a seperate commit by kettenis@
2010-11-01convert a trap that ends up in 'we_re_toast' from a boot(RB_HALT) into aPeter Hessler
real panic. this brings amd64 inline with all of the other arches. OK kettenis@, mikeb@, krw@, guenther@, thib@
2010-10-31Revert last commit: it breaks resume on ThinkpadsPhilip Guenthe
"then please back it out" deraadt@
2010-10-31Remove unused bstp_list and bstp_attach.Marco Pfatschbacher
OK blambert, claudio.
2010-10-31The return of rfork(RFTHREAD) must be consistent with getthrid().Philip Guenthe
Fixes rthread breakage observed by Vladimir Kirillov.
2010-10-30tweak gpio pins of julia cards to select the correct multiplier forAlexandre Ratchov
the ADC frequency. Fixes high frequencies being removed (probably ADC running at half the frequency and samples being duplicated).
2010-10-30in otus, tx() can return on error without releasing the nodeDamien Bergamini
so release the node in the caller (if_start) instead and do the same in run(4) for consistency.
2010-10-30no need to compute hdrlen in (), it is not used.Damien Bergamini
2010-10-30always decrement the number of xfers queued in txeof() evenDamien Bergamini
if transfer failed.
2010-10-30don't release the node twice if tx() failsDamien Bergamini
2010-10-30use (ifp->if_softc != NULL) instead of (ifp->if_flags != 0) to checkDamien Bergamini
if interface was attached. both are correct but this is for consistency with other drivers.
2010-10-30use hw sequence numbering for non-QoS framesDamien Bergamini
2010-10-30don't abuse lvalues, reported by Amit Kulkarni.Ted Unangst
(actually using KGDB remains as suspect as ever)
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@