Age | Commit message (Collapse) | Author |
|
removal from mbuf.h. ok mpi@
|
|
|
|
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@
|
|
move malloc.h down to where its used, and inside _KERNEL.
ok deraadt@ mpi@
|
|
Initial diff from Dimitris Papastamos. Support from mikeb@, ok benno@.
|
|
This will especially be helpful in future multiprocessor efforts.
ok jsg@
|
|
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@
|
|
we are looking for all matches in a line; ok natano@ miilert@ tedu@
|
|
|
|
|
|
to exist on. This is required to use ldrex/strex in some cases.
ok patrick@
|
|
ok kettenis@
|
|
ok mpi@
|
|
ok mpi@
|
|
and the PCB_SAVECTX flag would be a lie.
ok kettenis@ mpi@
|
|
anymore since the kernel VM space increase work done in sparc about one
year ago.
from Miod Vallat; thanks!
ok tobiasu
|
|
specific Auxiliary Control Register (ACTLR).
ok patrick@
|
|
|
|
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@
|
|
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@
|
|
ok jsg@
|
|
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@
|
|
years ago.
ok dlg@
|
|
|
|
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@
|
|
|
|
|
|
|
|
Feedback from jmc@, ok guenther@ for an earlier version.
|
|
|
|
ok guenther@
|
|
references. Use _thread_pagesize for the semaphore mmap size instead of
calling getpagesize() each time.
ok beck@
|
|
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@
|
|
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply
that to getthrid(), sysctl(), and issetugid() as well.
ok mpi@ beck@
|
|
keep stdio from opening with O_CREAT which would require pledge cpath.
|
|
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@
|
|
driver.
ok mpi@
|
|
Feedback from and OK halex@
OK krw@
|
|
OK krw@
|
|
|
|
- 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@
|
|
- 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.
|
|
|
|
Static is a nop in _KERNEL, but is static in userland and therefore libpcap
|
|
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@
|
|
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@
|
|
Required for the keyboard and touchpad on the ideapad 100s.
ok kettenis@
|
|
pointer can be used with gpio and acpi intr_establish.
ok kettenis@
|
|
|
|
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!
|