summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2014-07-13use mallocarray for multiplied value checkingTed Unangst
2014-07-13KASSERTMSG(9): New kernel assertion with messageMasao Uebayashi
KASSERT() is annoying as it only prints the expression as a string. If you (developers) want to know a little more information, you have to do: #ifdef DIAGNOSTIC if (bad) panic(...); #endif KASSERTMSG() replaces it into a single line: KASSERTMSG(!bad, ...); Taken from NetBSD. (There is a concern that KASSERT() messages are too long; consume more memory, and not friendly for small monitors. This have to be considered & revisited later.) "Like" from henning@ Man page review & advices from jmc@ and schwarze@
2014-07-13pass correct sizes to free()Ted Unangst
2014-07-13use mallocarray()Theo de Raadt
2014-07-13pciide.c, pciide_rdc_reg.h(new): ported rdcide(4) from NetBSD.sasano
it supports RDC's R1012 IDE controller. tested on 86duino EduCake (DM&P Vortex86EX SoC) ok by deraadt@
2014-07-13use mallocarrayTed Unangst
2014-07-13Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianTheo de Raadt
ok tedu
2014-07-13boot(9): Cosmetic changes to improve diff'ability.Masao Uebayashi
2014-07-13Comment out option GPT until the matching userland bits are in place.Miod Vallat
2014-07-13Cosmetic changes to reduce diffs.Masao Uebayashi
2014-07-13The correct place to call _bus_dmamap_sync() is after we copy data *to* theMark Kettenis
bounce buffer and before we copy data *from* the bounce buffer. Currently _bus_dmamap_sync() is a no-op, but keeping it #ifdef'ed out in the wrong place makes no sense. ok deraadt@, miod@
2014-07-13Fix sched_stop_secondary_cpus() to properly drain CPUsMatthew Dempsky
TAILQ_FOREACH() isn't safe to use in sched_chooseproc() to iterate over the run queues because within the loop body we remove the threads from their run queues and reinsert them elsewhere. As a result, we end up only draining the first thread of each run queue rather than all of them. ok kettenis
2014-07-13fix even more trailing tabsJasper Lievisse Adriaanse
2014-07-13#$%#@$# CONSPEEDMiod Vallat
2014-07-13more hanging tabsJasper Lievisse Adriaanse
2014-07-13ugly hanging tabs; ok jasperTheo de Raadt
2014-07-13No libsa putchar wanted here actuallyMiod Vallat
2014-07-13obvious conversion to mallocarray()Theo de Raadt
2014-07-13Still needs <sys/reboot.h>Miod Vallat
2014-07-13consistency with upcoming bootloader device parsing of the uboot arguments,Jasper Lievisse Adriaanse
root= becomes rootdev=
2014-07-13When reassembled IPv6 fragments are NATed or RDRed by pf, theAlexander Bluhm
checksum has to be recalculated before the packet is fragmented again. Put a missing in6_proto_cksum_out() into pf_refragment6(). This makes run-regress-frag6 and run-regress-frag6-ext pass again. From Matthias Pitzl; OK henning@
2014-07-13do not need malloc.hTheo de Raadt
2014-07-13use mallocarray where arguments are multiplied; ok teduTheo de Raadt
2014-07-13Keep track of port connections and port resets.Paul Irofti
Also notify upstream when a port finished reseting and when the connection status changes. Gets things further along to the point where pipe device transfer and control methods are required.
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXMartin Pelikan
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian". Some KNF while there. ok guenther
2014-07-13Put back a m_copyback() that got lost in rev 1.837 of pf.c. ThisAlexander Bluhm
fixes the rewrite of an IPv6 header of an ICMP6 packet in the payload of an ICMP6 error packet. Path MTU discovery with ping6 over pf nat or rdr works again. Found by src/regress/sys/net/pf_fragment make run-regress-fragping6 OK henning@
2014-07-13GPTSIGNATURE must be LL, for operation on non-punk machinesTheo de Raadt
ok punk
2014-07-13Introduce PS_NOBROADCASTKILL a process flag that excludes processes fromClaudio Jeker
receiving broadcast signals (kill -1). The flag can be set via a new sysctl KERN_PROC_NOBROADCASTKILL. This will be used by iscsid to survive the mass killing by init(8) when terminating multi-user operations. With and OK guenther@
2014-07-13No need for <netinet/in_systm.h> here.Martin Pieuchot
2014-07-13bzero -> memset. for the speeds.Ted Unangst
2014-07-13trim some castsTed Unangst
2014-07-13Remove stale comment which used to explain why we had a special 31-bit freelistMiod Vallat
for DMA, back when this was applicable.
2014-07-13KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)Masao Uebayashi
This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that kernel_lock is held. In the long process of removing kernel_lock, there will be a lot (hundreds or thousands) of use of this; virtually almost all functions in !MP-safe subsystems should have this assertion. Thus this assertion should have a short, good name. Not only that "KERNEL_ASSERT_LOCKED" is consistent with other KERNEL_* and SCHED_ASSERT_LOCKED() macros. Input from dlg@ guenther@ kettenis@. OK dlg@ guenther@
2014-07-13Fall back to smaller spacing on the mips64 machines.Paul Irofti
Please spare some change for the mips64 memory-challenged machines.. Some change, Sir? Fixes at least the octeon platform. Found the hardway on my DSR500. Found by Boss tedu@ and Boss deraadt@ Okay Boss miod@
2014-07-13Initial support to read GPT partition tables in the kernel, if option GPT.Miod Vallat
Contributed by Markus Mueller; code based upon Bitrig's GPT support, with stricter GPT structures validation and support for alternate header places. ok deraadt@ jsing@ krw@
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-13use mallocarray where arguments are multipled. ok deraadtTed Unangst
2014-07-13fill in proper sizes in free(9)Martin Pelikan
2014-07-13pass the size to free in some of the obvious casesTed Unangst
2014-07-13if the freedsize isn't zero, check that's reasonable. ok beckTed Unangst