History log of /netbsd-src/sys/kern/init_main.c (Results 151 – 175 of 550)
Revision Date Author Comments
# 11281f01 16-Sep-2009 pooka <pooka@NetBSD.org>

Replace a large number of link set based sysctl node creations with
calls from subsystem constructors. Benefits both future kernel
modules and rump.

no change to sysctl nodes on i386/MONOLITHIC & b

Replace a large number of link set based sysctl node creations with
calls from subsystem constructors. Benefits both future kernel
modules and rump.

no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL

show more ...


# fbd53556 13-Sep-2009 pooka <pooka@NetBSD.org>

Wipe out the last vestiges of POOL_INIT with one swift stroke. In
most cases, use a proper constructor. For proplib, give a local
equivalent of POOL_INIT for the kernel object implementation. This

Wipe out the last vestiges of POOL_INIT with one swift stroke. In
most cases, use a proper constructor. For proplib, give a local
equivalent of POOL_INIT for the kernel object implementation. This
way the code structure can be preserved, and a local link set is
not hazardous anyway (unless proplib is split to several modules,
but that'll be the day).

tested by booting a kernel in qemu and compile-testing i386/ALL

show more ...


# 5e46a7c2 03-Sep-2009 pooka <pooka@NetBSD.org>

Move configure() and configure2() from subr_autoconf.c to init_main.c,
since they are only peripherially related to the autoconf subsystem
and more related to boot initialization. Also, apply _KERNE

Move configure() and configure2() from subr_autoconf.c to init_main.c,
since they are only peripherially related to the autoconf subsystem
and more related to boot initialization. Also, apply _KERNEL_OPT
to autoconf where necessary.

show more ...


# 5523d7f5 02-Sep-2009 pooka <pooka@NetBSD.org>

Initialize devsw (lock) early so that subsystems may play with it.


# 9d8b69b2 27-Jul-2009 mbalmer <mbalmer@NetBSD.org>

Do not attach gpiosim(4) at root, but make it a pseudo device.
With help from Matthias Drochner, thanks!


# 953ebaaf 25-Jul-2009 mbalmer <mbalmer@NetBSD.org>

Allow gpiosim(4) to attach if configured in the kernel configuration.


# 0436400c 19-Jul-2009 yamt <yamt@NetBSD.org>

set LP_RUNNING when starting lwp0 and idle lwps.
add assertions.


# 7512d1e7 19-Jul-2009 rmind <rmind@NetBSD.org>

Make POSIX message queues a kernel module.


# 5c5bb856 17-Jul-2009 ad <ad@NetBSD.org>

Don't send the quiet banner to the log, since the usual noise gets dumped
there anyway.


# effcf1af 29-Jun-2009 dholland <dholland@NetBSD.org>

Convert 67 namei call sites to use namei_simple, in these functions:

check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,

Convert 67 namei call sites to use namei_simple, in these functions:

check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.

show more ...


# 8027ac8f 27-May-2009 pooka <pooka@NetBSD.org>

Make domaininit() take an argument which determines if it should
add the special PF_ROUTE domain or not (if available).


# d857e7b1 19-Apr-2009 ad <ad@NetBSD.org>

call rw_obj_init()


# 3d441221 07-Apr-2009 tsutsui <tsutsui@NetBSD.org>

Explicitly pass a specific buffer length to format_bytes() to
make it print memory sizes in humanized readable digits.


# bbb900de 02-Apr-2009 ad <ad@NetBSD.org>

banner: fix a minor bug.


# 5d4e966f 29-Mar-2009 ad <ad@NetBSD.org>

Remove debug code from previous.


# f07d0eaa 29-Mar-2009 ad <ad@NetBSD.org>

Add a cental banner() function to print the copyright and version info.


# d16d704d 21-Mar-2009 ad <ad@NetBSD.org>

PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash

Fix numerous problems:

1. LDT updates are not atomic.

2. Number of processes running with private LDTs and/or I/O bitm

PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash

Fix numerous problems:

1. LDT updates are not atomic.

2. Number of processes running with private LDTs and/or I/O bitmaps
is not capped. System with high maxprocs can be paniced.

3. LDTR can be leaked over context switch.

4. GDT slot allocations can race, giving the same LDT slot to two procs.

5. Incomplete interrupt/trap frames can be stacked.

6. In some rare cases segment faults are not handled correctly.

show more ...


# c75123c9 05-Mar-2009 yamt <yamt@NetBSD.org>

main: disable kerenel preemption during early on boot. namely, between
configure() and configure2(). some kernel threads are not expected
to be run before "cold = 0". fixes cache_thread() busy-loo

main: disable kerenel preemption during early on boot. namely, between
configure() and configure2(). some kernel threads are not expected
to be run before "cold = 0". fixes cache_thread() busy-loop.

show more ...


# 0cc72e51 13-Feb-2009 apb <apb@NetBSD.org>

Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.


# 160a3766 12-Feb-2009 christos <christos@NetBSD.org>

Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred,
it caused the return from the enclosing function to break, as well as the
ssp return on i386. To fix both issues, split

Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred,
it caused the return from the enclosing function to break, as well as the
ssp return on i386. To fix both issues, split configure in two pieces
the one before calling ssp_init and the one after, and move the ssp_init()
call back in main. Put ssp_init() in its own file, and compile this new file
with -fno-stack-protector. Tested on amd64.
XXX: If we want to have ssp kernels working on 5.0, this change needs to
be pulled up.

show more ...


# 461a86f9 11-Jan-2009 christos <christos@NetBSD.org>

merge christos-time_t


# 0e983d35 01-Jan-2009 pooka <pooka@NetBSD.org>

* unexpose kprintf locking internals
* migrate from simplelock to kmutex

Don't bother to bump kernel version, since nothing outside of subr_prf
used KPRINTF_MUTEX_ENXIT()


# 54b94261 07-Dec-2008 pooka <pooka@NetBSD.org>

Move some sysctl node creations away from linksets and into the
constructors for subsystems.

XXX: CTLFLAG_PERMANENT is non-sensible.


# 3e2feea4 04-Dec-2008 he <he@NetBSD.org>

Ksyms are optional, so make the call to ksyms_init() dependent
on the same conditionals which are defined in sys/conf/files.


# 719a906e 30-Nov-2008 martin <martin@NetBSD.org>

As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing

As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.

show more ...


12345678910>>...22