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


Keyword substitution: kv
Default branch: MAIN


Revision 1.22.4.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 13:06:16 2023 UTC (12 months ago) by martin
Branches: 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
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 9 15:21:01 2023 UTC (12 months ago) by pgoyette
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 9 20:49:10 2021 UTC (3 years, 4 months ago) by andvar
Branches: 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +20 -20 lines
fix various typos in compatibility, mainly in comments.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:13 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +2 -1 lines
Sync w/ HEAD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Nov 1 18:51:02 2020 UTC (4 years, 1 month ago) by pgoyette
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 19 19:33:02 2020 UTC (4 years, 1 month ago) by christos
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -1 lines
Arrange so that no options COREDUMP and no options PTRACE work together.
Thanks to Paul Goyette for testing.

Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:03 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.2: +24 -18 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 20 19:37:53 2019 UTC (5 years ago) by pgoyette
Branches: 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 16 03:26:19 2019 UTC (5 years ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -8 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 11 17:11:07 2019 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +11 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 10 14:20:50 2019 UTC (5 years, 1 month ago) by pgoyette
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 10 13:28:06 2019 UTC (5 years, 1 month ago) by pgoyette
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 20 18:23:05 2019 UTC (5 years, 4 months ago) by christos
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -1 lines
add a register validation hook for ptrace on netbsd32 to be used for
64 -> 32 debugging.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jul 16 22:57:55 2019 UTC (5 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -11 lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 25 15:33:55 2019 UTC (5 years, 5 months ago) by rjs
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Split out the prototypes for add/delete address into a separate header file.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:02 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +280 -0 lines
Sync with HEAD

Revision 1.12.2.1
Fri May 17 07:37:12 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.12: +0 -280 lines
file compat_stub.c was added on branch phil-wifi on 2019-06-10 22:09:02 +0000

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri May 17 07:37:12 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609
Branch point for: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -1 lines
 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 - view: text, markup, annotated - select for diffs
Mon Apr 29 16:12:30 2019 UTC (5 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 29 11:57:22 2019 UTC (5 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 15 02:07:11 2019 UTC (5 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +9 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 5 23:28:02 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Sun Feb 3 08:02:24 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 29 09:28:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +31 -31 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 29 04:10:10 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Rename the if43_20_hook to if43_cvtcmd_20_hook

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jan 28 21:13:58 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Mon Jan 28 15:46:49 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -3 lines
- 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 - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:43 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +259 -0 lines
Merge the [pgoyette-compat] branch

Revision 1.1.2.42: download - view: text, markup, annotated - select for diffs
Fri Jan 25 09:36:09 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.41: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.41: +11 -1 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 24 04:08:09 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.40: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.40: +1 -6 lines
Rework placement of the new netbsd32_machine32_hook

Revision 1.1.2.40: download - view: text, markup, annotated - select for diffs
Thu Jan 24 03:27:24 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.39: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.39: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 15 22:01:26 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.38: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.38: +7 -1 lines
Add a comment for the SCTP section, as was done for the NTP section

Revision 1.1.2.38: download - view: text, markup, annotated - select for diffs
Tue Jan 15 21:37:44 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.37: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.37: +2 -2 lines
Add missing # to fix the non-SCTP case.

Revision 1.1.2.37: download - view: text, markup, annotated - select for diffs
Tue Jan 15 10:52:20 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.36: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.36: +6 -1 lines
Include appropriate headers to define the sctp routines

Revision 1.1.2.36: download - view: text, markup, annotated - select for diffs
Tue Jan 15 04:10:34 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.35: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.35: +10 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 13 23:32:21 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.34: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.34: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 13 10:49:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.33: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.33: +17 -8 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 11 06:27:45 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.32: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.32: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 15 22:06:16 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.31: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.31: +6 -1 lines
Convert the final non-MP-safe "vectored" compat routine to use the
MP-safe mechanism.

Revision 1.1.2.31: download - view: text, markup, annotated - select for diffs
Mon Oct 15 11:57:05 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.30: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.30: +6 -1 lines
Convert the compat70_unp_addsockcred hook to the MP-safe mechanism.

XXX One more remaining: sysvipc50_sysctl

Revision 1.1.2.30: download - view: text, markup, annotated - select for diffs
Mon Oct 15 10:44:27 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.29: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.29: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 15 09:51:33 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.28: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.28: +7 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 15 04:33:34 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.27: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.27: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 12 22:30:54 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.26: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.26: +7 -1 lines
Use a MP-safe hook for the rnd_ioctl compat_50 calls.

Revision 1.1.2.26: download - view: text, markup, annotated - select for diffs
Tue Oct 2 01:43:53 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.25: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.25: +7 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 25 21:41:30 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.24: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.24: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 23 22:00:58 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.23: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.23: +6 -1 lines
Actually allocate/define the kern_proc_32 hook

Revision 1.1.2.23: download - view: text, markup, annotated - select for diffs
Fri Sep 21 03:42:20 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.22: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.22: +1 -5 lines
Adapt the ieee80211_20 code to the new MP-safe mechanism

Revision 1.1.2.22: download - view: text, markup, annotated - select for diffs
Fri Sep 21 02:56:22 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.21: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.21: +6 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 20 07:34:10 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.20: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.20: +18 -3 lines
Use the MP-safe hooks mechanism for the uipc_syscalls_40 and _50
routines.

Revision 1.1.2.20: download - view: text, markup, annotated - select for diffs
Wed Sep 19 04:12:43 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.19: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.19: +2 -1 lines
Split out the vnd COMPAT_50 code

Revision 1.1.2.19: download - view: text, markup, annotated - select for diffs
Tue Sep 18 01:15:58 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.18: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.18: +2 -25 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 17 11:04:31 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.17: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.17: +47 -44 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 16 04:57:22 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.16: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.16: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 15 05:56:50 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.15: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.15: +11 -1 lines
Prepare for adding MP-safe stuff.

While here, move some header #includes

Revision 1.1.2.15: download - view: text, markup, annotated - select for diffs
Tue Apr 17 07:24:55 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.14: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.14: +6 -1 lines
Finish separating the compat_09 and compat_43 stuff

Revision 1.1.2.14: download - view: text, markup, annotated - select for diffs
Tue Apr 3 08:29:44 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.13: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.13: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 30 10:09:08 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.12: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.12: +7 -1 lines
Extract compat_14 stuff into its own module

Revision 1.1.2.12: download - view: text, markup, annotated - select for diffs
Fri Mar 30 02:28:49 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.11: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.11: +9 -1 lines
Create and build the compat_20 module

Revision 1.1.2.11: download - view: text, markup, annotated - select for diffs
Thu Mar 29 11:20:03 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.10: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.10: +25 -4 lines
Split out the usb compat_30 code and add it to the module

Revision 1.1.2.10: download - view: text, markup, annotated - select for diffs
Wed Mar 28 07:51:09 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.9: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.9: +8 -1 lines
Split vnd compat_30 code out of the main driver and into the compat_30
module

Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Wed Mar 28 04:18:24 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.8: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.8: +8 -1 lines
Initial pass at a compat_30 module.

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

Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Tue Mar 27 07:29:44 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.7: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.7: +7 -1 lines
Create a compat_40 module

Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Sat Mar 24 23:52:19 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.6: +7 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 24 08:24:40 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.5: +9 -1 lines
Add fs/puffs compat_50 to the modules

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 24 01:59:15 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +13 -7 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 23 09:41:10 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +7 -1 lines
Handle the compat_50 stuff for opencrypto/cryptodev

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Wed Mar 21 10:12:49 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +5 -1 lines
Move if_spppsubr compat code into the compat50 module.

More prep work for compat80 module (for raidframe)

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 21 04:48:32 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +11 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 20 08:11:25 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +55 -0 lines
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, 8 months ago) by pgoyette
Branches: 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.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>