| Age | Commit message (Collapse) | Author |
|
|
|
Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER
Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
|
|
also s/beyound/beyond/ and few others along the way, mainly in comments.
|
|
|
|
This excludes atari, sgimips, evbmips, evbppc, evbsh3, and hpcarm
all of which have somewhat specific kernel config file layouts
|
|
|
|
|
|
Plus a handful of others that I'm familiar with. Lots of special-
purpose kernels should probably have this too but I'm not going
through all the arm, mips, and ppc evaluation board kernels to see
which ones are relevant.
Omitted from systems I know to be very small:
- sun2/GENERIC
- dreamcast/GENERIC
Feel free to remove it from others that need to be kept smaller.
Compile-tested a few of these just in case:
- alpha/GENERIC
- amd64/GENERIC
- evbmips/OCTEON
- i386/GENERIC
- riscv/GENERIC
PR kern/29702
|
|
Note the ancient Xsun server supports multiple framebuffers with both
cgfour (at DISPLAY :0) and overlay bwtwo (at DISPLAY :0.1).
|
|
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
|
|
|
|
|
|
|
|
|
|
|
|
Will help to make struct device opaque later.
|
|
mainly s/aparently/apparently/ and s/implmented/implemented/.
|
|
|
|
|
|
|
|
Fix few more typos along the way, mainly in copy-pasted comments.
|
|
|
|
|
|
referenced since some sources include <machine/param.h>.
|
|
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.
Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)
Remove unnecessary or redundant interface attributes where they're not
needed.
There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
|
|
variables into u_int, to match with kern/subr_evcnt.c.
|
|
interrupt accounting.
|
|
|
|
of names in the intrnames list.
|
|
list of NULLs and 0. idea from rillig@.
all touched ports built, several booted.
|
|
They have been defined in <m68k/asm.h> for years.
|
|
requested by mrg
|
|
|
|
It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
|
|
|
|
It unwinds stack frame by using address of its first argument, which
does not, of course, work if inline-expanded.
|
|
unaligned member inside. CTASSERT() the size is unchanged.
with this, sun3 and GCC 9 appears to work.
|
|
|
|
Fixes "cgfour(4) is mis-probed as bwtwo(4)" problem on 3/80
that has been broken since NetBSD 1.6.
Now Xorg 1.20 based Xsun 8bpp color server is confirmed working
on the cgfour(4).
Should be pulled up to netbsd-9.
XXX: all MD PMAP_NC flags should be replaced with MI PMAP_NOCACHE flag.
|
|
Note that _KERNEL is always defined for modules.
|
|
- T_ZERODIV is integer divide by zero. Therefore, ksi_code should be
FPE_INTDIV, not FPE_FLTDIV.
- Set ksi_addr for SIGTRAP. Also, set TRAP_BRKPT or TRAP_TRACE to
ksi_code appropriately.
This fixes some tests in lib/libc/sys and lib/libc/gen.
XXX
Apply similar fixes to other m68k ports.
|
|
-omit-frame-pointer is enabled for -O1 and higher for GCC8 by default.
|
|
|
|
from vezhlys on freenode.
|
|
sun3 GENERIC -Os
text data bss dec hex filename
1762862 75292 93032 1931186 1d77b2 netbsd
sun3 GENERIC -Os -fno-unwind-tables
text data bss dec hex filename
1545726 75292 93032 1714050 1a2782 netbsd
GENERIC is tested on TME.
|
|
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
|
|
|
|
sc->xmit_busy is less than sc->ntxbuf.
|
|
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.
|
|
|