The NetBSD Project

CVS log for src/sys/kern/compat_stub.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22.4.1 / (download) - annotate - [select for diffs], Sun Dec 10 13:06:16 2023 UTC (4 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #487):

	sys/compat/common/compat_90_mod.c: revision 1.5
	sys/compat/common/compat_90_mod.c: revision 1.6
	sys/netinet6/in6.c: revision 1.290
	sys/netinet6/in6.c: revision 1.291
	sys/compat/common/files.common: revision 1.11
	sys/netinet6/icmp6.c: revision 1.255
	sys/compat/common/net_inet6_nd_90.c: revision 1.1
	sys/compat/common/net_inet6_nd_90.c: revision 1.2
	sys/modules/compat_90/Makefile: revision 1.2
	sys/modules/compat_90/Makefile: revision 1.3
	sys/netinet6/nd6.c: revision 1.281
	sys/compat/common/compat_mod.h: revision 1.10
	sys/kern/compat_stub.c: revision 1.23
	sys/sys/compat_stub.h: revision 1.27

Identify the need to rework the COMPAT_* code to be more
module-aware.
This is an XXX comment block only, NFCI.

Modularize the COMPAT_90 code that resulted from the removal of
netinet6/nd6 from the kernel.  Now, the minimal compat code can
be successfully loaded and unloaded along with the rest of the
COMPAT_90 code.

Allow kernels builds which don't define INET6 to compile compat bits
too.

Default the build of compat_90 module to include IPv6, as is done
for other INET6-sensitive modules (see if_lagg).

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 9 15:21:01 2023 UTC (4 months, 1 week ago) by pgoyette
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

Modularize the COMPAT_90 code that resulted from the removal of
netinet6/nd6 from the kernel.  Now, the minimal compat code can
be successfully loaded and unloaded along with the rest of the
COMPAT_90 code.

XXX  pullup-10 - hopefully before RC2

Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 9 20:49:10 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.21: +20 -20 lines
Diff to previous 1.21 (colored)

fix various typos in compatibility, mainly in comments.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:13 2020 UTC (3 years, 4 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync w/ HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Nov 1 18:51:02 2020 UTC (3 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Separate the compat_netbsd32_coredump from the compat_netbsd32 and
coredump modules, into its own module.

Welcome to 7.99.75 !!!

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 19 19:33:02 2020 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

Arrange so that no options COREDUMP and no options PTRACE work together.
Thanks to Paul Goyette for testing.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:03 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.12.2.2: +24 -18 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 20 19:37:53 2019 UTC (4 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.18: +9 -2 lines
Diff to previous 1.18 (colored)

Move all non-emulation-specific coredump code into the coredump module,
and remove all #ifdef COREDUMP conditional compilation.  Now, the
coredump module is completely separated from the emulation modules, and
they can all be independently loaded and unloaded.

Welcome to 9.99.18 !

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 16 03:26:19 2019 UTC (4 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.17: +1 -8 lines
Diff to previous 1.17 (colored)

Remove some XXX'd comments that were remnants of when I was working
on the [pgoyette-compat] code.

NFC

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Nov 11 17:11:07 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.15: +11 -1 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #413):

	sys/kern/kern_core.c: revision 1.27 (patch)
	sys/kern/kern_sig.c: revision 1.377 (patch)
	sys/kern/kern_sig.c: revision 1.378 (patch)
	sys/kern/sys_sig.c: revision 1.50
	sys/kern/sys_ptrace_common.c: revision 1.70
	sys/kern/compat_stub.c: revision 1.16
	sys/compat/common/kern_sig_16.c: revision 1.4
	sys/kern/compat_stub.c: revision 1.17
	sys/sys/compat_stub.h: revision 1.20
	sys/sys/signalvar.h: revision 1.98
	sys/sys/compat_stub.h: revision 1.21
	sys/sys/signalvar.h: revision 1.99

Convert the sendsig_sigcontext_16 function pointer to use the new
compat_hook mechanism.
XXX Despite being a kernel<-->module abi change, this should be
XXX pulled up to -9

 -

Convert the coredump_vec modular function pointer to use the new
compat_hook mechanism.
XXX Should be pulled up to -9 despite the kernel <--> module ABI
XXX change.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 10 14:20:50 2019 UTC (4 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

Convert the coredump_vec modular function pointer to use the new
compat_hook mechanism.

XXX Should be pulled up to -9 despite the kernel <--> module ABI
XXX change.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 10 13:28:06 2019 UTC (4 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.15: +6 -1 lines
Diff to previous 1.15 (colored)

Convert the sendsig_sigcontext_16 function pointer to use the new
compat_hook mechanism.

XXX Despite being a kernel<-->module abi change, this should be
XXX pulled up to -9

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jul 20 18:23:05 2019 UTC (4 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

add a register validation hook for ptrace on netbsd32 to be used for
64 -> 32 debugging.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 16 22:57:55 2019 UTC (4 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.13: +6 -11 lines
Diff to previous 1.13 (colored)

Move the assignment of SCTP-specific function hooks/pointers.

Without this, a rumpkernel (appropriately modified) built with SCTP
enabled will try to assign the function pointers, but the targets
are only available in rumpnet.  We cannot link the rumpkernel against
rumpnet because rumpnet is already linked against rumpkernel and we
would end up with a circular dependency.

As reported in private Email by rjs@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 25 15:33:55 2019 UTC (4 years, 9 months ago) by rjs
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Split out the prototypes for add/delete address into a separate header file.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:02 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.12.2.1: +280 -0 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD

Revision 1.12.2.1, Fri May 17 07:37:12 2019 UTC (4 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.12: +0 -280 lines
FILE REMOVED

file compat_stub.c was added on branch phil-wifi on 2019-06-10 22:09:02 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 17 07:37:12 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Branch point for: phil-wifi
Changes since 1.11: +7 -1 lines
Diff to previous 1.11 (colored)

 The max subtype of the ifmedia word is 31. It's too small for Ethernet now.
We currently use use it up to 30. We should extend the limit to be able to use
more than 10Gbps speeds. Our ifmedia(4) is inconvenience and have some problem
so we should redesign the interface, but it's too late for netbsd-9 to do it.
So, we keep the data structure size and modify the structure a bit. The
strategy is almost the same as FreeBSD. Many bits of IFM_OMASK for Ethernet
have not used, so use some of them for Ethernet's subtype.

The differences against FreeBSD are:
 - We use NetBSD style compat code (i.e. no SIOCGIFXMEDIA).
 - FreeBSD's IFM_ETH_XTYPE's bit location is from 11 to "14" even though
   IFM_OMASK is from 8 to "15". We use _IFM_ETH_XTMASK from bit 13 to "15".
 - FreeBSD changed the meaning of IFM_TYPE_MATCH(). I think we should
   not do it. We keep it not changing and added new IFM_TYPE_SUBTYPE_MATCH()
   macro for matching both TYPE and SUBTYPE.
 - Added up to 400GBASE-SR16.

New layout of the media word is as follows (from ifmedia_h):

 * if_media Options word:
 *	Bits	Use
 *	----	-------
 *	0-4	Media subtype	MAX SUBTYPE == 255 for ETH and 31 for others
 *	5-7	Media type
 *	8-15	Type specific options
 *	16-18	Mode (for multi-mode devices)
 *	19	(Reserved for Future Use)
 *	20-27	Shared (global) options
 *	28-31	Instance
 *
 *   3                     2                   1
 *   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
 *  +-------+---------------+-+-----+---------------+-----+---------+
 *  |       |               |R|     |               |     |         |
 *  | IMASK |     GMASK     |F|MMASK+-----+ OMASK   |NMASK|  TMASK  |
 *  |       |               |U|     |XTMSK|         |     |         |
 *  +-------+---------------+-+-----+-----+---------+-----+---------+
 *   <----->                   <--->                 <--->
 *  IFM_INST()               IFM_MODE()            IFM_TYPE()
 *
 *                              IFM_SUBTYPE(other than ETH)<------->
 *
 *                                   <---> IFM_SUBTYPE(ETH)<------->
 *
 *
 *           <------------->         <------------->
 *                        IFM_OPTIONS()

Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 29 16:12:30 2019 UTC (4 years, 11 months ago) by roy
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Introduce rt_addrmsg_src which adds RTA_AUTHOR to the message.
Use this when we notify userland of a duplicate address
and set RTA_AUTHOR to the hardware address of the sender.

While here, match the logging diagnostic of INET6 to the simpler one
of INET so it's consistent.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 29 11:57:22 2019 UTC (4 years, 11 months ago) by roy
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

rtsock: Route address message simplification

Rename rt_newaddrmsg to rt_addrmsg_rt.
Add rt_addrmsg which drops the error and route arguments which are only
needed by one caller.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 15 02:07:11 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.8: +9 -2 lines
Diff to previous 1.8 (colored)

Split the COMPAT_50 socket-timeout stuff out of kern/uipc_socket.c
and into its own source file, which is now included in the compat_50
module.

(Not sure how this got missed during the original [pgoyette-compat] work)

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 5 23:28:02 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

- Redo all the ioctl compat stuff to use a standard "ioctl" interface,
  and provide methods to the private softc
- Provide a function for constructing a RF_Raid_t from an RF_Config_t
- Factor out the big inline ioctl code into functions

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 3 08:02:24 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Don't include the raidframe compat code in the main raid module, the
compat code lives in their own compat_raid_xx modules, which will now
be autoloaded if needed.

While here, extract the compat_netbsd32_raid code into its own module,
too.

Welcome to 8.99.34

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 29 09:28:50 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.5: +31 -31 lines
Diff to previous 1.5 (colored)

Normalize all the compat hooks' names to the form

	<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 29 04:10:10 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Rename the if43_20_hook to if43_cvtcmd_20_hook

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 28 21:13:58 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

- Don't expose random data conversion functions, but expose the high level
  entry point (such as ioctl) instead.
- Attempt to autoload the module before using it.

Naming: Should the names of the hooks be:
    <category>_<version>_<function>_hook_t
or:
    <category>_<function>_<version>_hook_t

We should make those consistent.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 28 15:46:49 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.2: +8 -3 lines
Diff to previous 1.2 (colored)

- provide a hook for the 43 tty ioctls
- make the 60 tty ioctl hook look the same
- fix the tty code to call both hooks and remove unused lock

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:43 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.1: +259 -0 lines
Diff to previous 1.1 (colored)

Merge the [pgoyette-compat] branch

Revision 1.1.2.42 / (download) - annotate - [select for diffs], Fri Jan 25 09:36:09 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.41: +11 -1 lines
Diff to previous 1.1.2.41 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Move the netbsd32_machine32_hook into the main kernel with most of
the other hooks.

Although this hook might better belong in compat/netbsd32/ code,
there are some machines without a netbsd32 module (for example, i386
and sgimips) which still have consumers/users of this hook.  :(

Revision 1.1.2.41 / (download) - annotate - [select for diffs], Thu Jan 24 04:08:09 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.40: +1 -6 lines
Diff to previous 1.1.2.40 (colored) to branchpoint 1.1 (colored)

Rework placement of the new netbsd32_machine32_hook

Revision 1.1.2.40 / (download) - annotate - [select for diffs], Thu Jan 24 03:27:24 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.39: +5 -1 lines
Diff to previous 1.1.2.39 (colored) to branchpoint 1.1 (colored)

Replace weak symbol definition for machine32 with a hook.  Our in-kernel
linker doesn't handle weak symbols, so this prevented us from loading the
compat_linux32 module.

XXX There don't seem to be any other consumers of machine32 (nor does
XXX there seem to be any consumers of machine_arch32), even though it
XXX is defined for aarch64, arm32, and riscv).

Revision 1.1.2.39 / (download) - annotate - [select for diffs], Tue Jan 15 22:01:26 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.38: +7 -1 lines
Diff to previous 1.1.2.38 (colored) to branchpoint 1.1 (colored)

Add a comment for the SCTP section, as was done for the NTP section

Revision 1.1.2.38 / (download) - annotate - [select for diffs], Tue Jan 15 21:37:44 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.37: +2 -2 lines
Diff to previous 1.1.2.37 (colored) to branchpoint 1.1 (colored)

Add missing # to fix the non-SCTP case.

Revision 1.1.2.37 / (download) - annotate - [select for diffs], Tue Jan 15 10:52:20 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.36: +6 -1 lines
Diff to previous 1.1.2.36 (colored) to branchpoint 1.1 (colored)

Include appropriate headers to define the sctp routines

Revision 1.1.2.36 / (download) - annotate - [select for diffs], Tue Jan 15 04:10:34 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.35: +10 -1 lines
Diff to previous 1.1.2.35 (colored) to branchpoint 1.1 (colored)

Add vectors for sctp_{add,delete}_ipaddr() so we can check them
in rtsock.c rather than depending on the SCTP kernel compile
option.  This is similar to what was done previously with NTP.

Revision 1.1.2.35 / (download) - annotate - [select for diffs], Sun Jan 13 23:32:21 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.34: +8 -2 lines
Diff to previous 1.1.2.34 (colored) to branchpoint 1.1 (colored)

Add the required hooks for rtsock_50 and modify the COMPATCALL() macro
to use the hooks.  While the rtsock_50 situation is still sub-optimal
(it includes the main rtsock.c with a whole bunch of function and
variable redefinitions via macros), this at least makes it possible to
load the rtsock_50 code separately from more recent code, rather than
the previous requirement that rtsock_50 be built-in.

Revision 1.1.2.34 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:50 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.33: +17 -8 lines
Diff to previous 1.1.2.33 (colored) to branchpoint 1.1 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.1.2.33 / (download) - annotate - [select for diffs], Fri Jan 11 06:27:45 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.32: +6 -1 lines
Diff to previous 1.1.2.32 (colored) to branchpoint 1.1 (colored)

Rework the various sysctl-related routines to call the correct code
for each version.  While here, extract the 5.0 specific code instead
of including in the main rtsock.c code.

Also, clean up all the sysctl-related routines to prevent building
more than one copy, no matter how many places rtsock.c gets #include'd
into!

Revision 1.1.2.32 / (download) - annotate - [select for diffs], Mon Oct 15 22:06:16 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.31: +6 -1 lines
Diff to previous 1.1.2.31 (colored) to branchpoint 1.1 (colored)

Convert the final non-MP-safe "vectored" compat routine to use the
MP-safe mechanism.

Revision 1.1.2.31 / (download) - annotate - [select for diffs], Mon Oct 15 11:57:05 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.30: +6 -1 lines
Diff to previous 1.1.2.30 (colored) to branchpoint 1.1 (colored)

Convert the compat70_unp_addsockcred hook to the MP-safe mechanism.

XXX One more remaining: sysvipc50_sysctl

Revision 1.1.2.30 / (download) - annotate - [select for diffs], Mon Oct 15 10:44:27 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.29: +6 -1 lines
Diff to previous 1.1.2.29 (colored) to branchpoint 1.1 (colored)

Convert the openat_10 hook to use the MP-safe mechanism

XXX Still to do: compat70_unp_addsockcred and sysvipc50_sysctl

Revision 1.1.2.29 / (download) - annotate - [select for diffs], Mon Oct 15 09:51:33 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.28: +7 -1 lines
Diff to previous 1.1.2.28 (colored) to branchpoint 1.1 (colored)

Convert another hook to the MP-sfe mechanism.

XXX still have three more to convert: openat_10, sysvipc50_sysctl and
XXX compat70_unp_addsockcred

Revision 1.1.2.28 / (download) - annotate - [select for diffs], Mon Oct 15 04:33:34 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.27: +6 -1 lines
Diff to previous 1.1.2.27 (colored) to branchpoint 1.1 (colored)

Convert a couple more hooks to the MP-safe mechanism.

While here, clean up some headers and remove any that are now empty.

Revision 1.1.2.27 / (download) - annotate - [select for diffs], Fri Oct 12 22:30:54 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.26: +7 -1 lines
Diff to previous 1.1.2.26 (colored) to branchpoint 1.1 (colored)

Use a MP-safe hook for the rnd_ioctl compat_50 calls.

Revision 1.1.2.26 / (download) - annotate - [select for diffs], Tue Oct 2 01:43:53 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.25: +7 -1 lines
Diff to previous 1.1.2.25 (colored) to branchpoint 1.1 (colored)

Use a hook callback to allow sparc fpu code to determine if a process
is running under sunos emulation (in which case, fpu cleanup uses a
different set of fpu_codes[]).

Revision 1.1.2.25 / (download) - annotate - [select for diffs], Tue Sep 25 21:41:30 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.24: +3 -1 lines
Diff to previous 1.1.2.24 (colored) to branchpoint 1.1 (colored)

Additional use of NTP function pointers, since the NTP code might not
exist in the kernel.  (NTP is not (yet) a module, so we don't need to
use the MP-safe mechanism.)

Revision 1.1.2.24 / (download) - annotate - [select for diffs], Sun Sep 23 22:00:58 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.23: +6 -1 lines
Diff to previous 1.1.2.23 (colored) to branchpoint 1.1 (colored)

Actually allocate/define the kern_proc_32 hook

Revision 1.1.2.23 / (download) - annotate - [select for diffs], Fri Sep 21 03:42:20 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.22: +1 -5 lines
Diff to previous 1.1.2.22 (colored) to branchpoint 1.1 (colored)

Adapt the ieee80211_20 code to the new MP-safe mechanism

Revision 1.1.2.22 / (download) - annotate - [select for diffs], Fri Sep 21 02:56:22 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.21: +6 -3 lines
Diff to previous 1.1.2.21 (colored) to branchpoint 1.1 (colored)

Clean-up some pre-existing function-pointer code (related to if_43)
to use the new MP-safe mechanism.

Revision 1.1.2.21 / (download) - annotate - [select for diffs], Thu Sep 20 07:34:10 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.20: +18 -3 lines
Diff to previous 1.1.2.20 (colored) to branchpoint 1.1 (colored)

Use the MP-safe hooks mechanism for the uipc_syscalls_40 and _50
routines.

Revision 1.1.2.20 / (download) - annotate - [select for diffs], Wed Sep 19 04:12:43 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.19: +2 -1 lines
Diff to previous 1.1.2.19 (colored) to branchpoint 1.1 (colored)

Split out the vnd COMPAT_50 code

Revision 1.1.2.19 / (download) - annotate - [select for diffs], Tue Sep 18 01:15:58 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.18: +2 -25 lines
Diff to previous 1.1.2.18 (colored) to branchpoint 1.1 (colored)

Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation.  Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.

Implement MP-safe hooks for the usb_subr_30 code.  Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.

Revision 1.1.2.18 / (download) - annotate - [select for diffs], Mon Sep 17 11:04:31 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.17: +47 -44 lines
Diff to previous 1.1.2.17 (colored) to branchpoint 1.1 (colored)

Adapt (most of) the indirect function pointers to the new MP-safe
mechanism.  Still remaining are the compat_netbsd32 stuff, and
some usb subroutines.

Revision 1.1.2.17 / (download) - annotate - [select for diffs], Sun Sep 16 04:57:22 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.16: +3 -3 lines
Diff to previous 1.1.2.16 (colored) to branchpoint 1.1 (colored)

Yay - we got the ccd_ioctl_60 stuff to build!

Now we can use that as a template for cleaning up all the others.

Revision 1.1.2.16 / (download) - annotate - [select for diffs], Sat Sep 15 05:56:50 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.15: +11 -1 lines
Diff to previous 1.1.2.15 (colored) to branchpoint 1.1 (colored)

Prepare for adding MP-safe stuff.

While here, move some header #includes

Revision 1.1.2.15 / (download) - annotate - [select for diffs], Tue Apr 17 07:24:55 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.14: +6 -1 lines
Diff to previous 1.1.2.14 (colored) to branchpoint 1.1 (colored)

Finish separating the compat_09 and compat_43 stuff

Revision 1.1.2.14 / (download) - annotate - [select for diffs], Tue Apr 3 08:29:44 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.13: +6 -1 lines
Diff to previous 1.1.2.13 (colored) to branchpoint 1.1 (colored)

Remove fixed allocation of modules' "required" lists (previously
limited to MAXMODDEPS entries).  Update the modctl(MODCTL_STAT)
syscall to return the required data in a new format, and retain
the previous data format in MODCTL_OSTAT.  Update the compat_80
and compat_netbsd32 modules as needed.

Revision 1.1.2.13 / (download) - annotate - [select for diffs], Fri Mar 30 10:09:08 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.12: +7 -1 lines
Diff to previous 1.1.2.12 (colored) to branchpoint 1.1 (colored)

Extract compat_14 stuff into its own module

Revision 1.1.2.12 / (download) - annotate - [select for diffs], Fri Mar 30 02:28:49 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.11: +9 -1 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored)

Create and build the compat_20 module

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Thu Mar 29 11:20:03 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.10: +25 -4 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored)

Split out the usb compat_30 code and add it to the module

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Wed Mar 28 07:51:09 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.9: +8 -1 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored)

Split vnd compat_30 code out of the main driver and into the compat_30
module

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Wed Mar 28 04:18:24 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.8: +8 -1 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored)

Initial pass at a compat_30 module.

Still needs some work for dev/vnd and various dev/usb/*

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Tue Mar 27 07:29:44 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.7: +7 -1 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored)

Create a compat_40 module

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Sat Mar 24 23:52:19 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.6: +7 -1 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored)

Move the compat_50-specific code out of wscons/wsevent.c into its own
source file, which is now part of the compat_50 module.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Sat Mar 24 08:24:40 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.5: +9 -1 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Add fs/puffs compat_50 to the modules

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Sat Mar 24 01:59:15 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.4: +13 -7 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

Separate the compat_50 and compat_80 dispatching code from the main
body of raidframe, and place into the appropriate compat modules.

Enable building of the compat_80 module.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Fri Mar 23 09:41:10 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.3: +7 -1 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Handle the compat_50 stuff for opencrypto/cryptodev

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 10:12:49 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.2: +5 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Move if_spppsubr compat code into the compat50 module.

More prep work for compat80 module (for raidframe)

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Mar 21 04:48:32 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.1: +11 -1 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Split the compat_50 code out from the dev/clockctl driver and include
it in the compat_50 and compat modules.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Mar 20 08:11:25 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +55 -0 lines
Diff to previous 1.1 (colored)

Initial implementation of sys/kern/kern_stup.c as discussed on tech-kern

For now, we only handle the dev/ccd and NTP needs;  more to follow.

Revision 1.1, Tue Mar 20 08:11:25 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Branch point for: pgoyette-compat
FILE REMOVED

file compat_stub.c was initially added on branch pgoyette-compat.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>