summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-07-21boot(9): Reduce annoying style diffsMasao Uebayashi
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.
2014-07-21fix some wrong comments and a bit of KNFMike Larkin
2014-07-20Provide correct guidance on which header to use in the commentsPhilip Guenther
2014-07-20look up correct dev_t. This matters for the case where a device isTheo de Raadt
underlying softraid. ok mlarkin
2014-07-20Merge cmd.c from zboot into boot, dropping "clear" command while at it.Tobias Stoeckmann
With input from deraadt@ okay jasper@, uebayashi@
2014-07-20RB_MINIROOT is never checked by anything, so stop setting it.Theo de Raadt
2014-07-20spacing glitchesTheo de Raadt
2014-07-20Support hibernating to softraid crypto volumes.Mike Larkin
much help and ok from deraadt@
2014-07-20Skip reading bits from a region marked as "Preserve" if all bits will beMark Kettenis
modified. Some Sony and Asus laptops don't like this; the read seems to trigger an unwanted SMI that makes the machine hang. Diagnosed by mpi@ ok mpi@
2014-07-20Always allocate bwi(4) ring descriptors below the 1GB boundary to give 30bitStefan Sperling
devices a chance to work. Use bounce buffers for mbufs on 30bit devices. This fixes "intr fatal TX/RX" errors that render the internal wifi on many macppc machines unusable. However, packet loss problems remain. In my testing the device works fine sometimes, but experiences packet loss rates of up to 80% at other times. Still, this is a step forward. Helpful hints from claudio@ and dlg@ Tested on macppc by mpi@ and myself "go ahead" kettenis@, ok mpi@
2014-07-20In bwi(4), don't declare an interrupt as unhandled in case the PHY TX errorStefan Sperling
bit is set. This interrupt condition is handled by resetting the device. ok mpi@ as part of a larger diff
2014-07-20Make bwi_dma_mbuf_create() use the correct loop counter in error case.Stefan Sperling
Bug inherited from DragonFly BSD. ok mpi@ as part of a larger diff.
2014-07-20Load bwi(4) firmware once, not every time the interface is brought up.Stefan Sperling
Fixes a panic if the interrupt handler decides to reset the device. Firmware cannot be loaded in interrupt context. ok mpi@ as part of a larger diff
2014-07-20This pulls in <ddb/db_output.h>, so don't redeclare ddb functionsPhilip Guenther
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Also, the format string for warn* and err* shouldn't end with a newline. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-19Bring back pci_dopm, but disable it before powerdown.Paul Irofti
This fixes both the Lemote reboot issue and the USB issue on the Gdium's that miod@ spotted. Suggested by kettenis@, thanks! Okay miod@
2014-07-19Backout pci_dopm usage as it also breaks reboot on Lemote's.Paul Irofti
Noticed by matthieu@.
2014-07-19miod pointed out i forgot which way round casts go.David Gwynne
2014-07-18atomic_swap_ptr is special.David Gwynne
for jmatthew@
2014-07-18pass atomic_{cas,swap}_uint a volatile void * instead of a volatileDavid Gwynne
void **. the latter is really hard to cast for, and not what what solaris does. ok kettenis@
2014-07-18implement 'rootdev' parsing similar to what's already done in the kernel,Jasper Lievisse Adriaanse
but this time for bootdev(). defaults to octcf0a if all else fails.
2014-07-18implement EFBIG handling for heavily fragmented packets on the tx path.David Gwynne
ok claudio@
2014-07-17Rework management of the external L2 cache on the few Indy/Indigo2 systemsMiod Vallat
which have it. Instead of implementing external L2 maintainance at the cache routine level, let bus_dmamap_sync(9) know about the possible existence of an external L2, and invoke a dedicated routine to perform the necessary cache operations. This way, the external L2 dmamap_sync function pointer can get invoked with the physical address to operate on; this saves the pmap_extract() calls the previous cache routine had to do.
2014-07-17zero random buf for sysctl too, just in caseTed Unangst
2014-07-17zero entropy bufTed Unangst
2014-07-17Turn the console code into regular cons_decl() ones, to better fit libsaMiod Vallat
getchar/putchar and be able to link again. Crank minor version.
2014-07-17interrupt handlers established via the ioapic didnt get theirDavid Gwynne
ih_flags set. ih_flags are used by the intr_handler() code to determine if the kernel lock should be taken or not. because the flags werent set, random memory was used instead which in turn meant you sometimes didnt have the biglock when running interrupt handlers which relied on it. races ahoy. this was found by jmatthew@ while helping me try to figure out why bnx was blowing up and causing double frees and use after frees. turns out bnx was the smoke for this fire. sorry it took so long. ok kettenis@ sthen@ sthen@ seems happy to have the i386 ports build machine working again.
2014-07-17immidiatelly -> immediatelyMiod Vallat
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-16Save and restore NVS ranges when hibernating, as per The Spec.Mike Larkin
ok kettenis@, deraadt@
2014-07-16Do not set pci_dopm to 1 on the Gdium; if we do, rebooting puts the USB HCI inMiod Vallat
a state PMON doesn't expect, and can't recover from.
2014-07-16Add mpbios(4). This fixes hw.ncpufound in bsd.rd on the Soekris net6501Christian Weisgerber
and thus the choice of bsd.mp in the installer. ok kettenis@
2014-07-16the scan for transforming free(...) to (free..., 0) failed becuase thisTheo de Raadt
file has 'free (' :-/
2014-07-16Reenable hibernate RLE support and flush+zero all memory after unpack.Mike Larkin
2014-07-15Don't define uuid_t yet; unbreaks some ports. spotted by jca@Miod Vallat
2014-07-15mode 644 for installing these filesTheo de Raadt
2014-07-15delete commented out slTheo de Raadt
2014-07-15crank to 5.6-betaTheo de Raadt
2014-07-15Implement rw_cas() with atomic_cas_ulong() now, instead of a dedicatedMiod Vallat
routine.
2014-07-15Fix stupid bug in atomic_{add,sub}_int_nv_mp, and stupider bug inMiod Vallat
atomic_cas_uint_mp. Also, make the interprocessor interlock the only thing on its cache line.
2014-07-14In the next step, stop accepting the nibble-swapped protocol for 5.6.Theo de Raadt
This completes the transition. A cvs log and diff will tell the story of why we went through this. with david.dahlberg@fkie.fraunhofer.de and claudio
2014-07-14whitespaceJasper Lievisse Adriaanse
2014-07-14Enable ext2fs support on RAMDISK_CD. Requested a few months ago inVadim Zhukov
private mail. We already have mount_ext2fs there, so it's likely to be just forgotten to be enabled. kirby@ kindly tested that kernel still fits. okay deraadt
2014-07-14Write to the correct control module registers when configuring gpio pins.Raphael Graf
Tested and ok joshe@
2014-07-14better type safety and KNF.Martin Pelikan
Because ext2fs has only 32-bit inode numbers, use ufsino_t as in FFS. Disk blocks are u_int32_t as well, because we don't support the 64BIT flag. When we do, there's going to be a lot more going on than just daddr_t. While there, add some journaling-related bits into the superblock to play with. ok guenther
2014-07-14More comment cleanup in boot().Masao Uebayashi
2014-07-14revert free checks in here. this seems to be a bit too agressive at theBob Beck
moment and now is not the time. hitting these in here causes chaos. We need to do these, but at a better time than right after a hackathon and before release. ok guenther@
2014-07-14international currency locale rules as per POSIX.1-2008Martin Pelikan
required for libc++ ok guenther afresh1
2014-07-14Convert syslog_r(3) to using sendsyslog(2). This ensures that syslog_r(3)Theo de Raadt
can be used anywhere (signal handler, stack protector fault handler) as long as the format string does not contain floating point. ok tedu miod beck
2014-07-14now that receive ring accounting has been pulled out of the mbuf layer,David Gwynne
we can pull the space the mbuf layer used to do per interface accounting out of struct if_data. saves a hundredish bytes on every interface. ok deraadt@ claudio@