summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-01-24Use header <sys/atomic.h> rather than <machine/atomic.h> in MI code.Visa Hankala
OK mpi@ deraadt@
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
While here document prfind(9. with and ok guenther@
2017-01-24Introduce rt_report() a function that generates a route message from anClaudio Jeker
rt_entry. Use this function in the success case of all route commands. Reduce the goto madness in route_output and make the code hopefully a bit easier to read and work with. OK mpi@ bluhm@
2017-01-23File descriptor passing internalizes fd's into an mbuf-stored array ofTheo de Raadt
struct file *, and then externalizes back to fd upon delivery. Convert storage to array of struct fdpass, containing struct file * (and soon something else). memcpy originally intended for alignment purposes can be removed because CMSG_ALIGN is _ALIGN. There is some anxiety over changing this code, but it reads easier. ok mpi guenther kettenis
2017-01-23Allocate all memory chunks, and potentially sleeping, before freeingMartin Pieuchot
the old array of open files. Fix a race for multi-threaded processes reported by cheeky.m@gmx.com on bugs@ and analyzed with bluhm@. ok deraadt@, bluhm@
2017-01-23enable bcmdog on armv7 as wellJonathan Gray
2017-01-23Avoid curproc dance in dupfdopen(), by passing a struct proc *Theo de Raadt
ok guenther mpi
2017-01-23The function raw_input() has not been called since netiso has beenAlexander Bluhm
removed in 2004. The comment about raw_input() above rip_input() was added in 1981, but it is wrong since 1992. After that it has been copied to rip6_input(). (*pr_input)() is never called with the parameters (mbuf, sockproto, sockaddr, sockaddr). So retire raw_input(). OK guenther@ deraadt@
2017-01-23Enable bcmdog on RAMDISK as well so it can reboot.Jonathan Gray
ok kettenis@ patrick@
2017-01-23Add bcmdog(4), a watchdog timer for the Raspberry Pi.Mark Kettenis
Based on code written by patrick@
2017-01-23Remove duplicate $OpenBSD$ tag.Mark Kettenis
2017-01-23Enter UKC when built with BOOT_CONFIG and -c is specified.Jonathan Gray
ok kettenis@ patrick@
2017-01-23Enable USBVERBOSE on both the GENERIC and RAMDISK kernel.Patrick Wildt
2017-01-23Make the RAMDISK kernel actually try to boot the ramdisk.Patrick Wildt
2017-01-23Create a mapping for the FDT if it happens to be on a different 1 GiBPatrick Wildt
mapping than the kernel.
2017-01-23Initialize DDB if compiled with option DDB.Patrick Wildt
ok kettenis@
2017-01-23In comparison to _start, where we only need the address of thePatrick Wildt
function, we need another indirection for esym. The address of esym is simply the address of the variable. But in the case of esym we want to read and modify its value. ok kettenis@
2017-01-23_end should be on a 64-bit boundary, so make sure to alignPatrick Wildt
the end of BSS by 64-bit and not 32-bit. With and ok kettenis@
2017-01-23Enable simplefb(4).Mark Kettenis
2017-01-23openprom(4)Mark Kettenis
2017-01-23Synchronize with the arm version of this file.Mark Kettenis
2017-01-23We are supposed to be mapped on a 128 MB block, so skip the firstPatrick Wildt
few bits to calculate a valid virtual address for esym. Found with kettenis@
2017-01-23Flag pseudo-interfaces as such in order to call add_net_randomness()Martin Pieuchot
only once per packet. Fix a regression introduced when if_input() started to be called by every pseudo-driver. ok claudio@, dlg@
2017-01-23Nuke extraneous whitespace and tabs.Frederic Cambus
2017-01-23Add (temporary) workaround for the missing "dma-ranges" property in theMark Kettenis
device tree provided by the current Raspberry Pi firmware. ok jsg@
2017-01-23Parse and use "dma-ranges" property to do the appropriate dma addressMark Kettenis
translations on machines like the Raspberry Pi. ok jsg@
2017-01-23Also attach to "arm,armv7-timer".Mark Kettenis
ok patrick@
2017-01-23Assert for IPL_SOFTNET rather than raising SPL recursively.Martin Pieuchot
ok benno@
2017-01-23Kill unecessary splsoftnet()/splx() dances, what's protecting radixMartin Pieuchot
globals is the KERNEL_LOCK(). ok claudio@
2017-01-23Add Raspberry Pi 3 drivers to RAMDISK as well.Jonathan Gray
ok kettenis@
2017-01-23remove #defines present in MI conf.h; ok kettenisTheo de Raadt
2017-01-23Avoid mapping memory outside kernel VA space. This happens on machinesMark Kettenis
where we don't load the kernel at the start of physical memory such as the Raspberry Pi 3. ok patrick@
2017-01-23Remove final align as it confuses lld.Mark Kettenis
ok patrick@
2017-01-23Add drivers for the Raspberry Pi 3.Mark Kettenis
2017-01-23i botched the copyout to ifr->ifr_data in SIOCGIFDATA.David Gwynne
this lets pflogd run again. rename if_data() to if_getdata() while here to make grepping for things less noisy. reported by jsg@ worked through with deraadt@
2017-01-23No need to explicitly use config_activate_children in the cfattach struct.Mark Kettenis
2017-01-23Backwards compat for pledge "ioctl" for about a weekTheo de Raadt
2017-01-23rework how we address physical disks on the second scsibus.David Gwynne
to talk to a physical disk on mfii you need to know its physical disk id and its current dev handle. you can fetch a list of physical disks with a MR_DCMD_PD_GET_LIST command, and you get the dev handle by fetching the associated info from a MR_DCMD_LD_MAP_GET_INFO command. i made a mistake and thought that the index into the PD_GET_LIST info was the target id of a disk, and that should also be used as the index into the LD_MAP_GET_INFO structures. it turns out that the PD_GET_LIST is a dense array of info that points at the target id, and the target id is used as the index into the LD_MAP_GET_INFO. it also turns out that the dev handles from LD_MAP_GET_INFO can change at runtime, so we should update them all when the bus topology changes. this change fetches a list of dev handles via LD_MAP_GET_INFO up front, and makes them availble to the passthru bus scsi_cmd handler via SRP. in the future hotplug events will update the map concurrently with disk accesses. also get rid of the probe for pd disks since the id from PD_GET_LIST and what the scsibus automatically probes are the same. we just let the midlayre blindly probe all possible targets on the passthru bus. the pd scsibus probe handler still fetches specific disk info to ensure we only provide access to disks marked as PASSTHRU in the firmware.
2017-01-23Only allow change-setting ioctls when FWRITE is set on the descriptor.Theo de Raadt
ok I forget who
2017-01-23store the full 64bits of the sense bufers dva.David Gwynne
this is in preparation of reusing the sense buffer for passthru dcmds
2017-01-23Split pledge "ioctl" into "tape" and "bpf", and allow SIOCGIFGROUP onlyTheo de Raadt
upon "inet". Adjust the 4 programs that care about this.
2017-01-23add the mfii opcode for passthru commandsDavid Gwynne
2017-01-23whitespaceTheo de Raadt
2017-01-23Add gpio(4) and switch(4) to cdevsw.Jonathan Gray
ok patrick@
2017-01-23merge the ifnet and ifqueue stats together when userland wants them.David Gwynne
a new if_data() function takes a pointer to ifnet and merges its if_data and ifq statistics. it takes the ifq mutex around the reads of the ifq stats so they get a consistent copy. the ifnet and ifq stats are merged because some parts of the stack still update the ifnet counters. ok visa@ (on an earlier diff) mpi@ claudio@
2017-01-23massage some event related details.David Gwynne
turn the enum of event argument types into a series of #defines so when you printf the arg type you can search for the number and get an answer without having to count lines. add a struct for extended physical address arguments in event messages. add a list of event types.
2017-01-23represent the mbox layout with union instead of an array of bytes.David Gwynne
memcpying uint16_ts into inconsistently addressed offsets is hard to read, and this makes future work easier to implement. tested on mfi(4) and mfii(4)
2017-01-23Move static function to the bottom of the file, to the only userPatrick Wildt
of that function, to guard it with SMALL_KERNEL. ok mpi@
2017-01-23Make the art interface a bit more generic by not depending on sockaddrClaudio Jeker
in the functions. This way it can be used for other trees as well. OK mpi@ phessler@
2017-01-23Build firmware for usb devices on arm64.Jonathan Gray
ok patrick@