CVS log for src/sys/arch/amd64/amd64/netbsd32_machdep_16.c
Up to [cvs.NetBSD.org] / src / sys / arch / amd64 / amd64
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Dec 20 06:36:01 2023 UTC (11 months, 2 weeks ago) by thorpej
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: +2 -3
lines
Remove unnecessary <sys/malloc.h>.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Nov 6 20:42:56 2021 UTC (3 years, 1 month 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,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -20
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:14:59 2021 UTC (3 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -5
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:03:30 2020 UTC (4 years, 7 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:25 2020 UTC (4 years, 7 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 (4 years, 11 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 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:05:47 2019 UTC (5 years, 5 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: +262 -0
lines
Sync with HEAD
Revision 1.3.4.1
Fri Mar 1 11:06:55 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.3: +0 -262
lines
file netbsd32_machdep_16.c was added on branch phil-wifi on 2019-06-10 22:05:47 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:55 2019 UTC (5 years, 9 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:37 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +262 -0
lines
Merge the [pgoyette-compat] branch
Revision 1.1.2.12: download - view: text, markup, annotated - select for diffs
Wed Jan 23 03:34:14 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.11: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.11: +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.11: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:26 2019 UTC (5 years, 10 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: +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.10: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:31 2018 UTC (5 years, 11 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: +4 -2
lines
Sync with HEAD, resolve a few conflicts
Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Sat Sep 29 07:34:12 2018 UTC (6 years, 2 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: +3 -3
lines
Allocate the netbsd32_sendsig_hook in the main compat_netbsd32 code
(where it call be called) and not in a subsidiary module which may
not even exist.
Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Sat Sep 29 07:13:01 2018 UTC (6 years, 2 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: +5 -3
lines
Wrap long line, KNF
Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 25 01:26:58 2018 UTC (6 years, 2 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 -3
lines
In the xxx_fini() routine we need to _un_set the hook!
Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 25 01:15:27 2018 UTC (6 years, 2 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: +6 -4
lines
Make the replacement/hook function return an int, to match the
expectations of the MP-safe HOOK mechanism.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 25 00:53:59 2018 UTC (6 years, 2 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 -4
lines
And use proper macro names
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 25 00:00:05 2018 UTC (6 years, 2 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: +3 -2
lines
If we're going to use the MP-safe HOOK macros, it helps to define them
by including the proper header!
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 24 22:56:45 2018 UTC (6 years, 2 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: +8 -5
lines
Convert yet another function pointer to the MP-safe mechanism
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 14 08:38:37 2018 UTC (6 years, 2 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: +6 -11
lines
OMG it builds!
Finish rearranging the amd64 MD compat_netbsd32 code.
XXX Other architectures will be dealt with later.
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 14 05:37:08 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +262 -0
lines
Work in progress - get the arch-specific netbsd32_machdep.c code to
build as a module.
XXX Doesn't work when the code is built-in to the kernel.
Revision 1.1
Fri Sep 14 05:37:08 2018 UTC (6 years, 2 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>