History log of /netbsd-src/sys/kern/kern_stub.c (Results 1 – 25 of 50)
Revision Date Author Comments
# 7c54d842 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 ...


# 0eaaa024 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.


# a2fd4833 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 ...


# 555fed26 27-Jan-2019 christos <christos@NetBSD.org>

remove extra #endif


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

Merge the [pgoyette-compat] branch


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

let the modular code load the sysv modules.


# 01d91758 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...


# a60b9909 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 ...


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

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


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

to garnish, dust with _KERNEL_OPT


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

Add kernel code to support intrctl(8).


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

add pci_intr_distribute(9) for x86.


# 3d49ec1a 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 ...


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

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


# 24aef817 31-Aug-2011 dyoung <dyoung@NetBSD.org>

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


# a32744d8 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().


# 22c58b45 06-Jul-2011 dyoung <dyoung@NetBSD.org>

Add default implementations for new bus_space(9) routines.


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

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


# 0840f9cc 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 ...


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

Remove Mach specific trace points.


# dcda6c56 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