CVS log for src/sys/arch/mips/mips/netbsd32_machdep_16.c
Up to [cvs.NetBSD.org] / src / sys / arch / mips / mips
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 22 11:11:53 2024 UTC (7 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +4 -2
lines
Pull up following revision(s) (requested by pgoyette in ticket #724):
sys/modules/compat_netbsd32_16/Makefile: revision 1.5
sys/arch/powerpc/powerpc/compat_16_machdep.c: revision 1.25
sys/arch/powerpc/powerpc/compat_16_machdep.c: revision 1.26
sys/modules/compat_16/Makefile: revision 1.3
sys/modules/compat_netbsd32_13/Makefile: revision 1.5
sys/modules/compat_16/Makefile: revision 1.4
sys/arch/sun2/sun2/genassym.cf: revision 1.17
sys/arch/sun2/sun2/enable.h: revision 1.5
sys/modules/compat_13/Makefile: revision 1.3
sys/modules/compat_13/Makefile: revision 1.4
sys/modules/compat_13/Makefile: revision 1.5
sys/arch/mips/mips/netbsd32_machdep_16.c: revision 1.8
sys/modules/Makefile.compat: revision 1.1
sys/arch/mips/mips/netbsd32_machdep_13.c: revision 1.4
share/mk/bsd.kmodule.mk: revision 1.86
sys/arch/aarch64/aarch64/netbsd32_machdep_16.c: revision 1.4
sys/arch/powerpc/powerpc/compat_13_machdep.c: revision 1.23
sys/arch/aarch64/aarch64/netbsd32_machdep_13.c: revision 1.4
Import AFLAGS to allow processing of assembler files in modules.
Prerequisite for kern/583346.
Introduce sys/modules/Makefile.compat and hook some compat_1[36]
machdep code into the modules. kern/58346
Ooops missed a source file!
Proteect #include of kernel options files with #ifdef _KERNEL_OPT
XXX Add to existing 10.0 and 9.0 tickets for kern/583346
Include required headers
Add required include for compat_16 machdep code
fix the m68k compat_13 build.
include Makefile.assym to generate assym.h.
use -I. and -x assembler-with-cpp to actually use cpp and find assym.h.
also apply m68k assym.h fix here as well as compat_13.
powerpc64: Provide dummy stubs for compat1[36]
as done for amd64. We haven't had working userland for powerpc64,
and therefore compatible to 1.[36] is only useful for netbsd32.
Fix build failure for evbppc64 for PR kern/58346 (my bug!).
sun2/genassym.cf: Skip KERNBASE for _MODULE
as it is not a compile-time constant; see sun2/vmparam.h.
It should not be, and is not actually, used for modules.
PR kern/58346
sun2/enable.h: Fix -Wold-style-definition for WARNS=5 build as modules
Finally fix sun2 build for PR kern/58346
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jun 17 20:25:20 2024 UTC (7 months, 3 weeks ago) by pgoyette
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -2
lines
Proteect #include of kernel options files with #ifdef _KERNEL_OPT
XXX Add to existing 10.0 and 9.0 tickets for kern/583346
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Nov 6 20:42:56 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -19
lines
COMPAT_NETBSD32 is all about running the 32-bit flavor of native
binaries on a 64-bit platform[*], as such:
- Make the logic about which "sendsig" flavor to call MI (as it is in the
native 64-bit environment) and follow the same rules as the native 32-bit
environment.
- Make COMPAT_NETBSD32 x COMPAT_16 work the same as it would in the
native 32-bit environment by providing a netbsd32_sendsig_sigcontext_16_hook,
rather than overriding the entire sendsig logic with a netbsd32_sendsig_hook.
- In netbsd32___sigaction_sigtramp(), make sure the compat_netbsd32_16
module is loaded if the trampoline version specifies a sigcontext style
handler, otherwise return EINVAL so that libc can try again with siginfo
style.
[*] ...except for arm32, which uses it to mean "run 32-bit OABI binaries
from the 32-bit EABI environment". Doing it this way was arguably a mistake,
but we are stuck with it for now, so support it by providing a machine-
dependent override for netbsd32_sendsig() that also disables the corresponding
logic in netbsd32___sigaction_sigtramp().
Fixes PR kern/56487.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Oct 27 04:15:00 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -3
lines
Use the signal trampoline version constants from <sys/signal.h>.
Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:00 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.3: +0 -1
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:45 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +3 -3
lines
Merge changes from current as of 20200406
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Dec 12 02:15:42 2019 UTC (5 years, 2 months 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-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
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.4: preferred, colored
Changes since revision 1.4: +3 -3
lines
Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures.
This cuts the amount of cacheline_aligned data for these structures by
50%.
Note that we still have a per-hook localcount, since we need to count
individual references.
As discussed with riastradh@
Welcome to 9.99.22 !
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Nov 13 16:11:27 2019 UTC (5 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3
lines
Clean-up unnecessary inclusions of opt_coredump.h
Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:30 2019 UTC (5 years, 8 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +110 -0
lines
Sync with HEAD
Revision 1.3.4.1
Fri Mar 1 11:06:55 2019 UTC (5 years, 11 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.3: +0 -110
lines
file netbsd32_machdep_16.c was added on branch phil-wifi on 2019-06-10 22:06:30 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:55 2019 UTC (5 years, 11 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
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,
netbsd-9,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:38 2019 UTC (6 years ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +110 -0
lines
Merge the [pgoyette-compat] branch
Revision 1.1.2.10: download - view: text, markup, annotated - select for diffs
Wed Jan 23 03:34:14 2019 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.9: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.9: +4 -7
lines
Convert the macros for setting and unsetting a hook to generate
in-line code rather than using an intermediary hook##set routine.
Hooks are set and unset only in one place, so the intermediary
routine provides no benefit. IMHO using the macro at the point-
of-call is more readable than using it elsewhere in the code and
then calling the generated intermediary routine (for which you
won't even find its declaration or definition unless you remember
to search for the HOOK_SET macro instead).
NFC intended, will verify with a bulk build and an atf test run.
Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:26 2019 UTC (6 years, 1 month 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: +4 -6
lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Sat Sep 29 10:18:29 2018 UTC (6 years, 4 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: +4 -4
lines
Use proper names for netbsd32_machdep_md_16_{init,fini}() routines
Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Sat Sep 29 10:11:34 2018 UTC (6 years, 4 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: +3 -2
lines
Add prototype for the default netbsd32_sendsig_siginfo()
Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Sat Sep 29 10:02:37 2018 UTC (6 years, 4 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: +3 -3
lines
Here there is no 32-bit specific sendsig_sigcontext() so just use the
native one.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Sep 29 09:44:53 2018 UTC (6 years, 4 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: +4 -87
lines
Remove netbsd32_sendsig_sigcontext() - it belongs in netbsd32_machdep.c
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 29 07:47:46 2018 UTC (6 years, 4 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: +4 -2
lines
Don't fall off the end of a non-void function. (It used to be void,
but now returns an int to conform with requirements of the MP-safe
module_hook stuff.)
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 29 07:36:44 2018 UTC (6 years, 4 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: +9 -9
lines
Remove unnecesasry #ifdef COMPAT_16 (this file won't get selected unless
COMPAT_16 is defined).
Rename some functions for consistency with other architectures' machdep
code.
Provide some prototypes/declarations.
Use __func__ in a diagnostic message rather than hardcoding it in the
message string.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 29 06:55:33 2018 UTC (6 years, 4 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: +5 -2
lines
#include the module hook stuff
add prototype for netbsd32_sendsig_sigcontext
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 29 06:31:02 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +192 -0
lines
Add glue for netbsd32 compat_13 and _16 modules
Revision 1.1
Sat Sep 29 06:31:02 2018 UTC (6 years, 4 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
Branch point for: pgoyette-compat
FILE REMOVED
file netbsd32_machdep_16.c was initially added on branch pgoyette-compat.
CVSweb <webmaster@jp.NetBSD.org>