mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 23:09:39 +08:00
Added support for initialization of uihashinit().
This commit is contained in:
parent
b9fa3c9245
commit
20b5ca1d00
1
Makefile
1
Makefile
@ -370,6 +370,7 @@ C_FILES += freebsd/kern/subr_rman.c
|
|||||||
C_FILES += freebsd/kern/subr_module.c
|
C_FILES += freebsd/kern/subr_module.c
|
||||||
C_FILES += freebsd/libkern/inet_ntoa.c
|
C_FILES += freebsd/libkern/inet_ntoa.c
|
||||||
C_FILES += freebsd/kern/kern_prot.c
|
C_FILES += freebsd/kern/kern_prot.c
|
||||||
|
C_FILES += freebsd/kern/kern_proc.c
|
||||||
C_FILES += freebsd/kern/kern_time.c
|
C_FILES += freebsd/kern/kern_time.c
|
||||||
C_FILES += freebsd/kern/kern_event.c
|
C_FILES += freebsd/kern/kern_event.c
|
||||||
C_FILES += freebsd/netinet/tcp_hostcache.c
|
C_FILES += freebsd/netinet/tcp_hostcache.c
|
||||||
|
@ -1221,6 +1221,7 @@ devNic.addSourceFiles(
|
|||||||
'kern/subr_module.c',
|
'kern/subr_module.c',
|
||||||
'libkern/inet_ntoa.c',
|
'libkern/inet_ntoa.c',
|
||||||
'kern/kern_prot.c',
|
'kern/kern_prot.c',
|
||||||
|
'kern/kern_proc.c',
|
||||||
'kern/kern_time.c',
|
'kern/kern_time.c',
|
||||||
'kern/kern_event.c',
|
'kern/kern_event.c',
|
||||||
'netinet/tcp_hostcache.c',
|
'netinet/tcp_hostcache.c',
|
||||||
|
@ -183,6 +183,7 @@ mi_startup(void)
|
|||||||
struct sysinit **sysinit_end = NULL;
|
struct sysinit **sysinit_end = NULL;
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
#define VERBOSE_SYSINIT
|
||||||
#if defined(VERBOSE_SYSINIT)
|
#if defined(VERBOSE_SYSINIT)
|
||||||
int last;
|
int last;
|
||||||
int verbose;
|
int verbose;
|
||||||
@ -393,6 +394,7 @@ struct sysentvec null_sysvec = {
|
|||||||
.sv_fetch_syscall_args = null_fetch_syscall_args,
|
.sv_fetch_syscall_args = null_fetch_syscall_args,
|
||||||
.sv_syscallnames = NULL,
|
.sv_syscallnames = NULL,
|
||||||
};
|
};
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
@ -411,6 +413,7 @@ struct sysentvec null_sysvec = {
|
|||||||
static void
|
static void
|
||||||
proc0_init(void *dummy __unused)
|
proc0_init(void *dummy __unused)
|
||||||
{
|
{
|
||||||
|
#ifndef __rtems__
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
struct thread *td;
|
struct thread *td;
|
||||||
@ -424,11 +427,13 @@ proc0_init(void *dummy __unused)
|
|||||||
*/
|
*/
|
||||||
p->p_magic = P_MAGIC;
|
p->p_magic = P_MAGIC;
|
||||||
p->p_osrel = osreldate;
|
p->p_osrel = osreldate;
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize thread and process structures.
|
* Initialize thread and process structures.
|
||||||
*/
|
*/
|
||||||
procinit(); /* set up proc zone */
|
procinit(); /* set up proc zone */
|
||||||
|
#ifndef __rtems__
|
||||||
threadinit(); /* set up UMA zones */
|
threadinit(); /* set up UMA zones */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -558,9 +563,11 @@ proc0_init(void *dummy __unused)
|
|||||||
* Charge root for one process.
|
* Charge root for one process.
|
||||||
*/
|
*/
|
||||||
(void)chgproccnt(p->p_ucred->cr_ruidinfo, 1, 0);
|
(void)chgproccnt(p->p_ucred->cr_ruidinfo, 1, 0);
|
||||||
|
#endif /* __rtems__ */
|
||||||
}
|
}
|
||||||
SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL);
|
SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL);
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
/* ARGSUSED*/
|
/* ARGSUSED*/
|
||||||
static void
|
static void
|
||||||
proc0_post(void *dummy __unused)
|
proc0_post(void *dummy __unused)
|
||||||
|
2086
freebsd/kern/kern_proc.c
Normal file
2086
freebsd/kern/kern_proc.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user