summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-10-29fpa went awayTheo de Raadt
2013-10-29bye bye fea / fpaTheo de Raadt
2013-10-29Get boot device and partition from NVRAM. Boot filename still defaults toMiod Vallat
"bsd", since the PROM boot_filename has to point to the bootloader itself (I store mine as /vmunix).
2013-10-29Don't add sectors to blocks. Use DL_SECTOBLK() to change DL_GETPOFFSET()Kenneth R Westerback
sector value to 512-byte-blocks before adding to b_blkno. gcc tested on zaurus by matthieu@.
2013-10-29More cleanups:Miod Vallat
- accept empty controller and partition numbers, as well as empty filenames, and use defaults (0, 0 and "bsd") instead of complaining the boot path is invalid. - do not attempt to detect and report devices at boot, using a small list of possible devices (only scsi id #6 and #5, come on!). Instead, parse the user-supplied boot string to figure out which controller and device to talk to. (still no SCSI LUN support, though). Because of the last change, SCSI unit numbers ought to match the PROM numbering now (10 * controller + 6 - device id). Crank version to 0.2.
2013-10-29unbreak glxsb(4) by properly allocating it's key schedule;Mike Belopuhov
reduce pctr.h usage while here. ok jsing, deraadt
2013-10-29remove left over bits of omrt6msg, and cleanup the yuckyTheo de Raadt
clone of fd_set for interfaces tested in ports tree build by naddy
2013-10-29More cleanup and unused code or data removal.Miod Vallat
Constify the bitmap font. Bound check sd() numbers instead of accessing an array out of bounds (noticed by aoyama@). Use the same SCSI select timeout as the kernel does (250ms instead of 2ms).
2013-10-29The cache mask for ARMv7 is a little bit different from the one inited byPatrick Wildt
the generic function. While there, also set the cache bits manually. ok aalm@
2013-10-29Kill sc_attached, attach and detach events for USB devices are triggeredMartin Pieuchot
by the same explore task and cannot happen in parallel.
2013-10-29Move most of the uses of workqs in drm to the new task/taskq api.Jonathan Gray
Prevents unintended multiple additions to workqs that was causing hangs on radeon, and lets us remove tasks more closely matching the behaviour of the original linux code. ok kettenis@ cause of the ttm/radeon hangs debugged by claudio@ and kettenis@
2013-10-29implementing handling of the msg ring if its available. this lets us getDavid Gwynne
hotplug events from the hypervisor, so you can add and remove disks at runtime. movement on the msg ring is detected in the interrupt handler and deferred to a thread via tasks.
2013-10-29sys/task.h includes sys/queue.h, so kern/kern_task.c doesnt needDavid Gwynne
to do that again. kern/kern_task.c doesnt use pools so we dont need sys/pool.h either.
2013-10-29use unsigned int instead of u_int to reduce the depend on types.h.David Gwynne
might make jsg a little happier.
2013-10-29introduce tasks and taskqs as an alternative to workqs.David Gwynne
tasks are modelled on the timeout api, so users familiar with timeout_set, timeout_add, and timeout_del will already know what to expect from task_set, task_add, and task_del. i wrote this because workq_add_task can fail in the place you actually need it, and there arent any good ways of recovering at that point. workq_queue_task was added to try and help, but required external state to be stored for users of that api to know whether something was already queued or not. workqs also didnt provide a way to cancel or remove work. this has been percolating with a bunch of people. putting it in as i wrote it so i can apply their feedback to the code with the history kept in cvs.
2013-10-29Unlock the vnode while calling a device's d_close routine, except whenPhilip Guenther
it's locked for changing the type (i.e., revoke()). We already unlock it while calling the d_open, d_read, and d_write routines and this is safe for the same reason: the device routines operate at a lower level and don't need the protection of the vnode locks. This is important as the device close routine may block indefinitely. "don't see anything wrong" tedu@
2013-10-29__fd_mask should be unsigned, and let's shift an unsigned bit. WhyTheo de Raadt
has this never mattered before?? ok guenther millert
2013-10-28This is the cleaned up version I had intended to commit.Miod Vallat
2013-10-28Recognize kernel symbols when booted from the standalone bootloader.Miod Vallat
2013-10-28The first steps of a native OpenBSD/luna88k bootloader. Able to boot ELFMiod Vallat
kernels with symbols from disk or network. Based upon the NetBSD/luna68k bootloader which got recently overhauled from 4.3BSD (thanks, tsutsui@ !), updated to match the luna88k hardware layout and turned into a polling-only binary. Tested on luna88k (not -2) only so far.
2013-10-28kill kame version symbols and sysctlTheo de Raadt
ports tree grep run by sthen
2013-10-28Enable blocksize > 512 and cleanup ommmc_attach().Sylvestre Gallon
ok patrick@. With some input from Dale Rahn, Thanks!
2013-10-28Use the correct value for the Interframe Gap Time 0 bit in the transmitMartin Pieuchot
configuration register and fix a typo. From Paul A. Patience.
2013-10-28Document softraid boot process for i386/amd64.Stefan Sperling
Requested by Adam Thompson. suggestions and ok deraadt, earlier version ok jmc
2013-10-28Revamp ARMv7 ramdisk and miniroot creation process.Patrick Wildt
Instead of running mkuboot during install, we call it on during the release build, so that we can also ship bootable images of the generic and the ramdisk kernel. We can now build miniroots for imx, too. The installer also can recognize the SoC and makes decision based on it. Use ext2fs for i.MX6 based devices. Tar the bootloader files to save some space. ok syl@
2013-10-28Remove unused variable.Patrick Wildt
spotted by rapha@
2013-10-28Do not use the multicast macro IFP_TO_IA() to check if an interface hasMartin Pieuchot
a configured IPv4 address but iterates on its private list instead. ok deraadt@
2013-10-28tedu FDDI support and the 3 flavors the driver for DEC devices, evenMartin Pieuchot
miod@ cannot find two boards using the same media. With precious punctuation review from guenther@, thanks! ok deraadt@, henning@
2013-10-28previous udp port number rewrite fix turned out to be a work aroundMike Belopuhov
the incorrect pf_change_ap call; while here make the tcp case use pf_change_ap since it shares the same properties. ok henning
2013-10-28Make prcm(4) aware of the GPIO modules.Raphael Graf
ok aalm@, jasper@
2013-10-28We need to make sure that the kernel symbols area isn't marked as freePatrick Wildt
space. For this we only have to use the esym marker instead of _end.
2013-10-27delete UPCALL_TIMING debug code from a the dark agesTheo de Raadt
2013-10-27fix card-detect pins for wandboard.aalm
we count from zero, unlike freescale. spotted by and ok patrick@
2013-10-27Fix timer on for A20 as the address and offsets for the A20 counter were off.Jasper Lievisse Adriaanse
from Markus Hennecke, ok aalm@
2013-10-27build the manual pages on all architecturesTheo de Raadt
2013-10-27enable gpioctl(8) for armv7, and add associated devices on armv7/sunxi.aalm
ok jasper@, patrick@, rapha@
2013-10-26Use the "activate" framework rather a shutdown hookTheo de Raadt
ok jmatthew dlg pelikan
2013-10-26Unstub i915_gem_dumb_destroy() and radeon_mode_dumb_destroy().Mark Kettenis
2013-10-26on certain boards (like the pcduino) u-boot doesn't setup the MAC address forJasper Lievisse Adriaanse
us, in this case calculate an address based on the Security ID (SID) to ensure we get a unique address. tested on pcduino to ensure a unique address and verified by aalm@ on cubieboard (where u-boot does setup the MAC address). ok aalm@
2013-10-26Remove unused variable.Mark Kettenis
From Sebastien Marie.
2013-10-25Fix/re-enable RX checksum offload for 8168C/8168CP revisions after revision ↵Brad Smith
rev 1.140. The relevant code for enabling the HW's RX checksum offload support was checking for the TX feature flag to know when to enable RX checksum offload but that flag was removed/disabled with rev 1.140 which resulted in the RX checksum offload support inadvertently being disabled. ok naddy@
2013-10-25Don't let in_proto_cksum_out() assume that the ICMP checksum field isLawrence Teo
always in the first mbuf of an mbuf chain. Thanks to henning@ and bluhm@ for their work on checksums at b2k13, which allowed this fix to be very straightforward compared to earlier versions. help/feedback bluhm@ henning@ OK henning@ naddy@
2013-10-25fix an off by one when calculating the length of an sgl segmentMike Belopuhov
that our chain scatter-gather element is pointing to. the bug was observed by pedro martelletto with some particular firmware doing raid 0. the fix wouldn't have been possible without extensive debugging and spec conformance verification done by pedro. tested by pedro, dlg and myself, ok dlg
2013-10-25My last commit make the pandaboard panic.Sylvestre Gallon
Solve this removing the panic when want to enable PRCM_MMC0 on omap4. Spotted by rapha@ thanks.
2013-10-25fix commentTodd C. Miller
2013-10-25some cleanup for "machine memory";Jason McIntyre
2013-10-25RegenPhilip Guenther
2013-10-25Unimplement stime() and settimeofday(): why are you using a Linux-compatPhilip Guenther
binary to change the system time? ok pirofti@
2013-10-25regenPhilip Guenther
2013-10-25Start to deal with the time_t change's effect on compat/linux:Philip Guenther
- add Linux versions of struct rusage, timeval, and itimerval and conversion functions for them - add Linux versions of getrusage(), gettimeofday(), {set,get}itimer(), and nanosleep() - fix various inconsistencies in naming of Linux versions of types and conversion functions - add mappings for LINUX_CLOCK_{PROCESS,THREAD}_CPUTIME_ID to the native versions Originally written months ago as part of the time_t work; long memory, prodding, and ok from pirofti@