Commit Graph

798 Commits

Author SHA1 Message Date
mrg 110ac605f8 introduce DDB_END_CMD and replace more than 20 copies of the same
list of NULLs and 0.  idea from rillig@.

all touched ports built, several booted.
2021-02-23 07:13:51 +00:00
christos 4eee387d3c fix arm test 2020-11-07 21:42:32 +00:00
pgoyette 7f78906306 Use opt_execfmt.h to get build options.
Only include elf32 hooks if we have elf32 defined and elf32 is not the
"native" emulation.  This allows for having compat_netbsd32 without
elf32 (although it's probably not too useful), and also enables arm's
old-ABI usage of compat_netbsd32.
2020-11-04 20:54:20 +00:00
pgoyette 575be43dde Separate the compat_netbsd32_coredump from the compat_netbsd32 and
coredump modules, into its own module.

Welcome to 7.99.75 !!!
2020-11-01 18:51:02 +00:00
ryo 0b42d22ad0 move vmt(4) from MD to MI, and add support vmt on aarch64. tested on ESXi-Arm Fling
- move from sys/arch/x86/x86/{vmt.c,vmtreg.h,vmtvar.h} to sys/dev/vmt/{vmt_subr.c,vmtreg.h,vmtvar.h},
  and split the attach part of the cpufeaturebus and fdt
- add aarch64 vmware backdoor op
- add include guard to vmt{reg,var}.h
- Yet there is still some little-endian dependency. it needs to be fixed in order to work properly on aarch64eb
2020-10-27 08:57:10 +00:00
christos 2317429144 process_machdep.c is mandatory now. 2020-10-21 13:30:02 +00:00
christos 3d852e0ec8 Arrange so that no options COREDUMP and no options PTRACE work together.
Thanks to Paul Goyette for testing.
2020-10-19 19:33:01 +00:00
christos 0f75d4c102 Provide a global no-packed-address for both gcc and clang 2020-10-18 19:56:41 +00:00
christos facf2dbee5 use the GCC_ warning variable 2020-10-18 15:02:12 +00:00
christos 912321b7f4 Avoid alignment of packed member 2020-10-18 14:36:43 +00:00
christos 53f398bf72 Avoid alignment of packed member 2020-10-18 14:33:28 +00:00
ryo 354924730c modularize, and fix build error 2020-10-14 10:26:59 +00:00
jmcneill c9f4e317e7 Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.
2020-09-26 17:49:49 +00:00
yamaguchi f474b47c56 Added iavf(4) that is based on OpenBSD's iavf(4) implementation
reviewed by msaitoh@n.o and knakahara@n.o
2020-09-08 10:05:47 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
riastradh 0b8d836aa7 Fix fallout from previous uvm.h cleanup.
- pmap(9) needs uvm/uvm_extern.h.

- x86/pmap.h is not usable on its own; it is only usable if included
  via uvm/uvm_extern.h (-> uvm/uvm_pmap.h -> machine/pmap.h).

- Make nvmm.h and nvmm_internal.h standalone.
2020-09-06 02:18:53 +00:00
riastradh 9fc453562f Round of uvm.h cleanup.
The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
  to query whether curlwp is the pagedaemon, which should maybe be
  exposed by an external header.

- Use uvm_extern.h where feasible and uvm_*.h for things not exposed
  by it.  We should split up uvm_extern.h but this will serve for now
  to reduce the uvm.h dependencies.

- Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use
  UVMHIST(ubchist), since ubchist is declared in uvm.h but the
  reference evaporates if UVMHIST is not defined, so we reduce header
  file dependencies.

- Make uvm_device.h and uvm_swap.h independently includable while
  here.

ok chs@
2020-09-05 16:30:10 +00:00
maxv bdf36b5ffb Upgrade NVMM to WARNS=5. 2020-08-05 10:33:01 +00:00
chs af5290a884 the x86 xen and non-xen modules are identical,
so remove the unneeded extra copies.
Xen kernels now use the same modules as native kernels.
2020-07-04 21:02:15 +00:00
rin 3b1af247ce Rename module directory for ibm4xx from /stand/powerpc-4xx to
/stand/powerpc-ibm4xx to match with what we set in evbppc_machdep.c:

https://nxr.netbsd.org/xref/src/sys/arch/evbppc/evbppc/evbppc_machdep.c#86

(And we use ibm4xx not 4xx for directory in sys/arch/powerpc.)

Note that we had never enabled MODULAR for ibm4xx yet; kernel with
MODULAR option was unable to build. This should be why this discrepancy
had never been found until today...
2020-06-27 06:50:00 +00:00
maxv d0e60e9f80 Register NVMM as an actual pseudo-device. Without PMF handler, to
explicitly disallow ACPI suspend if NVMM is running.

Should fix PR/55406.
2020-06-25 17:01:19 +00:00
uwe 57ff52fa43 Example of a kernel module that registers DDB commands. 2020-06-01 03:37:40 +00:00
christos 9aa2a9c323 Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
thorpej ad4306e8db Include netbsd32_futex.c in the module. 2020-05-02 22:19:47 +00:00
christos 226be24a67 s/&&/&/ and also return POLLRDNORM (pointed out by joerg@) 2020-05-01 21:42:34 +00:00
christos 7fa5b1d2e9 remove debugging stuff accidentally committed. 2020-04-30 10:55:32 +00:00
mrg 0a33e04ee4 include sys/lwp.h and fix the build. 2020-04-30 07:07:22 +00:00
christos b902ab58a2 New kernel example module written by Ayushi Sharma 2020-04-30 00:48:10 +00:00
maya 65c9ca437f Turn off compat drm.
XXX issue security advisory
2020-04-19 17:40:49 +00:00
christos 0c792cd1aa Extended attribute support for ffsv2, from FreeBSD. 2020-04-18 19:18:33 +00:00
htodd ee948d74b4 Remove ufs_wapbl.c from Makefile. 2020-04-12 01:39:57 +00:00
kamil e6494e6f4f Switch to type generic PRIu macros
Fixes build on i386.
2020-04-04 23:22:12 +00:00
kamil 068c592bb4 Add new example kernel module: current_time
Submitted by Apurva Nandan.
2020-04-04 21:15:04 +00:00
jdolecek 1e03bcd0cf remove SMBFS and nsmb(4) - kernel part
it's unmaintained and supports only obsolete SMB1
2020-04-04 15:43:21 +00:00
kamil 85335799e7 Fix CVS Id 2020-04-01 13:07:32 +00:00
kamil c4f12fb2cb Avoid comparison between signed and unsigned integer
Cast PAGE_SIZE to size_t.
2020-04-01 11:45:53 +00:00
kamil 2c306a0e81 Import a new example kernel module fopsmapper
fopsmapper - basic implementation of mmap with fileops fo_mmap

Submitted by Aditya Vardhan Padala.
2020-04-01 01:57:20 +00:00
pgoyette 4b5fc12da6 Split out the quota code from the rest of compat_netbsd32 module. This
allows loading of compat_netbsd32 on kernels that don't have ``options
QUOTA'' enabled.
2020-03-12 15:02:29 +00:00
skrll fcbc11fb45 Fixup the evbarm PCI modules 2020-03-11 08:31:08 +00:00
christos 8c22ab9cb1 disable a.out on aarch64 2020-03-05 15:58:33 +00:00
skrll ba008dc590 Disable hifn again 2020-02-29 16:25:37 +00:00
skrll b12b7ef3a8 Group some PCI only modules together and only build them on a subset of
platforms.  The list is not complete.
2020-02-29 11:03:44 +00:00
yamaguchi 7b177b731a Make ixl(4) be able to build as a module 2020-02-27 06:30:55 +00:00
riastradh 32792a7e45 Carry new CWARNFLAGS over to module reachover makefiles.
Forgot these modules existed!
2020-02-14 09:35:52 +00:00
riastradh 82eab16613 cyclic.kmod needs -Wno-sign-compare for aarch64 CPU_INFO_FOREACH.
Provisional workaround; feel free to fix.
2020-02-12 06:36:19 +00:00
jmcneill 428130a8e6 Retire azalia(4). 2020-02-09 16:06:17 +00:00
pgoyette 987836cb65 Improve wording 2020-02-07 19:22:21 +00:00
kamil 920eeb12bb Document what does ping_block. 2020-02-06 22:52:25 +00:00
pgoyette 5448349461 Use ENOTTY as error for an unrecognized ioctl() code, rather than
"magic number" 1.


ok kamil@
2020-02-05 14:10:46 +00:00
kamil 9ecc7056f0 Import new example kernel module ping_block
Subbmitted by Nisarg Joshi.
2020-02-05 13:23:42 +00:00