History log of /netbsd/sys/kern/kern_stub.c (Results 1 – 25 of 50)
Revision Date Author Comments
# 941120eb 01-Aug-2020 riastradh <riastradh@NetBSD.org>

New functions kthread_fpu_enter/exit.

The MI definitions don't do anything but maintain a flag, but MD code
can define kthread_fpu_enter/exit_md to actually enable/disable the
FPU. (These are almos

New functions kthread_fpu_enter/exit.

The MI definitions don't do anything but maintain a flag, but MD code
can define kthread_fpu_enter/exit_md to actually enable/disable the
FPU. (These are almost pcu_load/discard on systems that use pcu(9),
except they apply to all PCUs.)

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2020/06/20/msg026524.html

The proposed kthread flag KTHREAD_FPU is not included because I
couldn't find any particular need for it that would not be covered by
just calling kthread_fpu_enter/exit in the kthread function.

show more ...


# 14b4bbb2 23-May-2020 ad <ad@NetBSD.org>

Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.


# 61b945c6 08-Oct-2019 mrg <mrg@NetBSD.org>

steal an idea from uwe@ and implement gcc-8 function type cast
friendly methods for sys/conf.h that needs it.

one alias per return type and first function are are needed,
though they can be stubbed

steal an idea from uwe@ and implement gcc-8 function type cast
friendly methods for sys/conf.h that needs it.

one alias per return type and first function are are needed,
though they can be stubbed to existing code. the only cost is
the symbol itself, the codegen it the same.

show more ...


# 71a26f1f 27-Jan-2019 christos <christos@NetBSD.org>

remove extra #endif


# cc17ee2e 27-Jan-2019 pgoyette <pgoyette@NetBSD.org>

Merge the [pgoyette-compat] branch


# 894729ff 12-Apr-2018 christos <christos@NetBSD.org>

let the modular code load the sysv modules.


# e60858c7 16-Dec-2017 christos <christos@NetBSD.org>

Fix the build: XXX this might^Wwill break module autoloading...
It is the general issue about symbol replacement during module loading and
unloading...


# c10cee41 02-Nov-2016 pgoyette <pgoyette@NetBSD.org>

* Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
2 - common ptrace(2) syscall code (shared with compat_netbsd32)
3 - support routine

* Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
2 - common ptrace(2) syscall code (shared with compat_netbsd32)
3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2. Both modules will be built-in to the
kernel if "options PTRACE" is included in the config file (this is
the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
just add a procfs attribute to the sys/kern/sys_process.c file's
entry in files.kern, and add PROCFS to the "#if defineds" for
process_domem(). It's really confusing to have two different ways
of requiring this file.

show more ...


# 773c3639 28-Aug-2015 knakahara <knakahara@NetBSD.org>

fix interrupt_* stubs. reported by skrll@n.o


# 6342a8dc 24-Aug-2015 pooka <pooka@NetBSD.org>

to garnish, dust with _KERNEL_OPT


# 2b015ca5 17-Aug-2015 knakahara <knakahara@NetBSD.org>

Add kernel code to support intrctl(8).


# f0ab7bc0 27-Apr-2015 knakahara <knakahara@NetBSD.org>

add pci_intr_distribute(9) for x86.


# 69912f7e 09-Dec-2013 pooka <pooka@NetBSD.org>

As long as we're using #ifdef to decide which stubs get generated, might
as well use __strong_alias instead of __weak_alias. Some toolchains
such as the cygwin pecoff one get weak aliases a bit wron

As long as we're using #ifdef to decide which stubs get generated, might
as well use __strong_alias instead of __weak_alias. Some toolchains
such as the cygwin pecoff one get weak aliases a bit wrong, so avoiding
unnecessary weak alises helps there.

show more ...


# 154d3024 19-Feb-2012 rmind <rmind@NetBSD.org>

Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.


# 98a66897 31-Aug-2011 dyoung <dyoung@NetBSD.org>

Add stub implementations of bus_dma_tag_create()/bus_dma_tag_destroy().


# 053eafd0 16-Aug-2011 dyoung <dyoung@NetBSD.org>

Protect against bugs by using __strict_weak_alias() for
bus_space_is_equal() and bus_space_handle_is_equal().


# 19bffca6 06-Jul-2011 dyoung <dyoung@NetBSD.org>

Add default implementations for new bus_space(9) routines.


# 2010dac5 01-Jun-2011 alnsn <alnsn@NetBSD.org>

kern/42030 - tracking of file descriptors by ktrace/kdump


# a881404a 31-May-2011 dyoung <dyoung@NetBSD.org>

Don't use the C preprocessor to configure USERCONF. Instead, either do
or do not link in subr_userconf.c and x86_userconf.c.

Provide no-op stubs for userconf_bootinfo(), userconf_init(), and
userco

Don't use the C preprocessor to configure USERCONF. Instead, either do
or do not link in subr_userconf.c and x86_userconf.c.

Provide no-op stubs for userconf_bootinfo(), userconf_init(), and
userconf_prompt().

Delete all occurrences of #include "opt_userconf.h" as well as USERCONF
and __HAVE_USERCONF_BOOTINFO #ifdef'age.

show more ...


# bc15838c 27-Apr-2011 joerg <joerg@NetBSD.org>

Remove Mach specific trace points.


# 4505d3a8 31-Jan-2011 dyoung <dyoung@NetBSD.org>

Let the linker instead of the C preprocessor configure the kernel: make
weak aliases device_register(9) and device_register_post_config(9)
for the stub routine voidop(). Get rid of __HAVE_DEVICE_REG

Let the linker instead of the C preprocessor configure the kernel: make
weak aliases device_register(9) and device_register_post_config(9)
for the stub routine voidop(). Get rid of __HAVE_DEVICE_REGISTER and
__HAVE_DEVICE_REGISTER_POST_CONFIG.

show more ...


# 599c2850 13-Jun-2010 simonb <simonb@NetBSD.org>

KNF nit.


# 3f82819c 28-Apr-2010 dyoung <dyoung@NetBSD.org>

Add data types, function prototypes, and stub implementations
for pci_chipset_tag_create() and pci_chipset_tag_destroy(). On
architectures that support it, an MI PCI bus driver can override the
arch

Add data types, function prototypes, and stub implementations
for pci_chipset_tag_create() and pci_chipset_tag_destroy(). On
architectures that support it, an MI PCI bus driver can override the
architecture's default pci(9) and pci_intr(9) implementation.

Coming up next: documentation.
After that: x86 implementation.
Last but not least: make cbb(4) use MI PCI overrides.

show more ...


# da792af7 26-Apr-2010 pooka <pooka@NetBSD.org>

Add an optional hook for adjusting module string table after load.
Currently to be used for rump "SAOS" namespace trick.


# ad6e139a 19-Apr-2010 dyoung <dyoung@NetBSD.org>

Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9). Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's. Tested on

Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9). Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's. Tested on i386 and on sparc64.

show more ...


12