summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-04Add sys/queue.h where it's needed. Unbreak userland following recentStuart Henderson
removal from mbuf.h. ok mpi@
2016-04-04fatalx() not fatal().Nicholas Marriott
2016-04-04In udpsockmode codepath dhcpd.c had the promise route for pledge(2) but it wasRicardo Mestre
missing from udpsock_startup() (udpsock.c) which happens earlier and therefore would abort the program due to SIOCGIFADDR ioctl(2) on udpsock_handler Reported by Philip Higgins <phil ! unita.com.au> OK tb@
2016-04-04mbuf.h doenst need queue.h.David Gwynne
move malloc.h down to where its used, and inside _KERNEL. ok deraadt@ mpi@
2016-04-04Hook up ndp -f.Jeremie Courreges-Anglas
Initial diff from Dimitris Papastamos. Support from mikeb@, ok benno@.
2016-04-04Store curcpu pointer in TPIDRPRW.Patrick Wildt
This will especially be helpful in future multiprocessor efforts. ok jsg@
2016-04-04Read cache line sizes from CP15 Cache Type Register.Patrick Wildt
Previously we used the primary data cache's information on how big the cache lines are. The CTR gives us better information about how big the smallest cache line sizes (controlled by the CPU) are. ok jsg@
2016-04-04Reverse search optimization makes no sense (and doesn't work) ifOtto Moerbeek
we are looking for all matches in a line; ok natano@ miilert@ tedu@
2016-04-04use fixed size unsigned variables for reading/writing the control registerJonathan Gray
2016-04-04turns out EVL_ENCAPLEN is 4, not 18 or sizeof(*evl).David Gwynne
2016-04-04Set the SMP/coherency bit in ACTLR on Cortex A models it is documentedJonathan Gray
to exist on. This is required to use ldrex/strex in some cases. ok patrick@
2016-04-03Don't call savectx() from cpu_fork(): the registers saved are overwrittenPhilip Guenther
ok kettenis@
2016-04-03Move the setting of pcb_fsbase out of reset_segs() into its callersPhilip Guenther
ok mpi@
2016-04-03Teach ddb's disassembler about {rd,wr}[fg]sbasePhilip Guenther
ok mpi@
2016-04-03Don't call savectx() from cpu_fork(): the registers saved are overwrittenPhilip Guenther
and the PCB_SAVECTX flag would be a lie. ok kettenis@ mpi@
2016-04-03Remove sparc special-casing from ufsdirhash_init(). This is not requiredMartin Natano
anymore since the kernel VM space increase work done in sparc about one year ago. from Miod Vallat; thanks! ok tobiasu
2016-04-03Add cpu_auxcontrol() to clear and set bits in the implementation/modelJonathan Gray
specific Auxiliary Control Register (ACTLR). ok patrick@
2016-04-03Remove erroneous whitespace added in previous change.Patrick Wildt
2016-04-03Map the bootconfig/FDT area passed by u-boot and try to init FDT on it.Patrick Wildt
If we were passed an FDT, we can completely map the tree and later on copy it somewhere in our control, so it's not overwritten by anything. If we are passed a device tree, we need to grab the information we otherwise would get from the bootinfo struct in another way. We can use the /memory node to parse the machine's memory information. Bootargs are stored in /chosen's bootargs property. This allows us to boot up like before using the board id, but now also allows us to make use of device tree information. ok jsg@
2016-04-03Implement a way to extract memory information from a node. This can bePatrick Wildt
used to extract information about how much RAM is available or where a controller is in the address space and how big its IO space is. Add a way to get the device tree's size. This is helpful to find out how much you need to copy if you want to move the tree somewhere else. Also add helpers to easily retrieve integers from a property. ok jsg@
2016-04-03Remove XSCALE preprocessor checks from a file which is only for ARMv7.Patrick Wildt
ok jsg@
2016-04-03The callers of fdt_next_node() expect it to return NULL if a next nodePatrick Wildt
cannot be found. Due to implementation details, it used to return a pointer to the next node, without checking if it actually exists. Modify fdt_next_node() to only return a next node if it actually exists and implement an internal skip_node() function that keeps the previous behaviour. ok mpi@
2016-04-03Remove __lockbarrier() defines, unused since cpu_lock removal a fewJonathan Gray
years ago. ok dlg@
2016-04-03remove unused cpu_lock codeJonathan Gray
2016-04-03Remove tests for "processing" which was never set. It attempted toJonathan Gray
protect against multiple entries of a function that handled pending soft interrupts. This seems to have been a mistake made when converting code that used simple lock in the 80321 code which got reused in armv7. arm softintr_dispatch() already has mutexes around invoked callbacks which should be enough. Make the pxa2x0 code work the same way which removes the last remaining simple lock use on arm. ok patrick@
2016-04-03Document ``use after free'' error messageOtto Moerbeek
2016-04-03double word;Jason McIntyre
2016-04-03syncJonathan Gray
2016-04-03Long overdue updates for timecounter changes.Jonathan Gray
Feedback from jmc@, ok guenther@ for an earlier version.
2016-04-03ath(4) 11g support code is broken and not enabled. Document this limitation.Stefan Sperling
2016-04-03mark the packet buffer in bpf_filter as bounded by the pktlen argDavid Gwynne
ok guenther@
2016-04-02Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalPhilip Guenther
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@
2016-04-02Eliminate superfluous 3rd params in fcntl(F_GETFL) calls.Kenneth R Westerback
ttymsg.c doesn't need to include fcntl.h. Tweak standard fd sanitising to be more like the sanitise_stdfd() used elsewhere, though other uses of 'nullfd' make importing sanitise_stdfd() itself unappetizing. Add a die(0) if dup2() fails. suggestions & ok bluhm@
2016-04-02Eliminate the need to explicitly invoke syscalls via their _thread_sys_*Philip Guenther
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply that to getthrid(), sysctl(), and issetugid() as well. ok mpi@ beck@
2016-04-02Use open(tty, O_WRONLY) + fdopen() instead of fopen(tty, "w") toTodd C. Miller
keep stdio from opening with O_CREAT which would require pledge cpath.
2016-04-02Another use for fcntl() and thus of the superfluous 3rd parameterKenneth R Westerback
is when sanitising standard fd's before calling daemon(). Use a tweaked version of the ssh(1) function in all three places found using fcntl() this way. ok jca@ beck@
2016-04-02Reduce dmesg spam by knocking out some acpi hardware IDs that don't need aMark Kettenis
driver. ok mpi@
2016-04-02Simplify defining the various set lists.Robert Peichaer
Feedback from and OK halex@ OK krw@
2016-04-02Remove unused variable.Robert Peichaer
OK krw@
2016-04-02forgot to cvs rm locally in previous commitRobert Peichaer
2016-04-02- merge install.sh into install.sub as do_install()Robert Peichaer
- merge upgrade.sh into install.sub as do_upgrade() - delete install.sh and upgrade.sh - make install.sub executable - turn install and upgrade into symbolic links to install.sub - add autoinstall symbolic link to install.sub - change dot.profile to use these symlinks - introduce a -m option to set MODE in install.sub - alternativly set MODE and AUTO depending on PROGNAME - execute the do_{install,upgrade) functions depending on $MODE OK halex@, krw@ 'go for it' deraadt@
2016-04-02streamline the code that checks meta information before extracting filesMarc Espie
- verify_modes should only verify modes - put the whole checking code in one single routine in validate_meta, makes the size checking code more obvious - document what's going on - prevent PkgCreate from creating impossible packages, only a few Ustar objects are actually usable.
2016-04-02sprinkle spaces to make more obvious which fields we useMarc Espie
2016-04-02mark the bpf_mem ops as Static.David Gwynne
Static is a nop in _KERNEL, but is static in userland and therefore libpcap
2016-04-02mark the program and buffer as const in bpf_filter()David Gwynne
other projects have already done this, and there's software (eg, gopacket) which now expects it. based on a discussion with jasper@ and canacar@ ok jasper@
2016-04-02refactor bpf_filter a bit.David Gwynne
the code was confusing around how it dealt with packets in mbufs vs plain memory buffers with a lenght. this renames bpf_filter to _bpf_filter, and changes it so the packet memory is referred to by an opaque pointer, and callers have to provide a set of operations to extra values from that opaque pointer. bpf_filter is now provided as a wrapper around _bpf_filter. it provides a set of operators that work on a straight buffer with a lenght. this also adds a bpf_mfilter function which takes an mbuf instead of a buffer, and it provides explicit operations for extracting values from mbufs. if we want to use bpf filters against other data structures (usb or scsi packets maybe?) we are able to provide functions for extracting payloads from them and use _bpf_filter as is. ok canacar@
2016-04-02Add support for I2C HID devices with GPIO signalled interrupts.Jonathan Gray
Required for the keyboard and touchpad on the ideapad 100s. ok kettenis@
2016-04-02Make the gpio intr_establish callback return an int so the same functionJonathan Gray
pointer can be used with gpio and acpi intr_establish. ok kettenis@
2016-04-01update currency exchange rates;Jason McIntyre
2016-04-01Move atomics.h include dance to an earlier stageMike Belopuhov
Otherwise proc.h & friends pick it up before we manage to perform our MULTIPROCESSOR dance. This time I've made sure we get LOCK prefixes with an objdump. Bug reported by Evgeniy Sudyr, thanks!