_SC_OPEN_MAX can exceed FD_SETSIZE. Use the compat value svc_maxfd+1
from the rpc library similar to ypbind(8).
The custom _svc_run() function is required as the standard svc_run()
may hang for retries.
Fixes PR 59750.
I am giving up attempting to bend the kernel build machinery to my will
so that assym.h can be safely included by libkern assembly sources. So,
instead, redundantly define __HAVE_M68K_BROKEN_RMC in multiple places so
that all the things that need to key off of it can.
Revert the size change of the install ramdisk and instead just remove
a driver from the install kernel. Same ramdisk size as before. Not
sure this platform can have a larger ramdisk size.
Add __HAVE_NEW_PMAP_68K glue:
- mac68k_init(): Use pmap_protect() to write-protect the kernel text
(with a comment explaining why we do this here).
- Add a machine_bootmap[] with entries for IOBase, ROMBase, and VIDBase.
In bootstrap_mac68k(), patch up machine_bootmap[] with run-time computed
values.
pmap_machine_check_bootstrap_allocations() and bootstrap_mac68k() are
independent of the pmap implementation; move them out of pmap_bootstrap.c
and into machdep.c
* Use the LFS_IFDIRTY flag to keep track of whether the Ifile has
ungathered changes during checkpoint. Modify LFS_WRITESEGENTRY and
make a new LFS_WRITEIENTRY macro to help track this. Prevents
an infinite loop in lfs_writeinode, previously caught with a panic.
* Fix a false-positive "negative bytes" panic when writing inodes into
the same segment they were in before, and consolidate the accounting
logic into new function lfs_subtract_inode.
* Ensure that we do not clean any inodes that were unavailable during
the first pass of cleaning, so that we never need to mix cleaning and
non-cleaning blocks (except for the Ifile) when writing.
* Straighten out the logic in lfs_writefile to make it more readable.
* Include IMNT_WANTRDONLY in tests for closing out writes, not just
IMNT_UNMOUNT.
* Keep track of whether the kernel cleaner is active on a file system
[2 lines not shown]