diff options
author | andrew <andrew@FreeBSD.org> | 2012-06-10 01:13:04 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2012-06-10 01:13:04 +0000 |
commit | 723899fa5c91cf5bb546942f05ad02ffb04560cf (patch) | |
tree | a54857d5b64fb392edc9c816a507c21fc49fe892 /sys/arm/at91/at91_machdep.c | |
parent | 070b3c041473a0ce18654dc5b1e1100d4b7896d2 (diff) | |
download | FreeBSD-src-723899fa5c91cf5bb546942f05ad02ffb04560cf.zip FreeBSD-src-723899fa5c91cf5bb546942f05ad02ffb04560cf.tar.gz |
Pull out the common code to initialise proc0 & thread0 from initarm to a
common function.
Reviewed by: imp
Diffstat (limited to 'sys/arm/at91/at91_machdep.c')
-rw-r--r-- | sys/arm/at91/at91_machdep.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c index a6b8d87..b05ef9a 100644 --- a/sys/arm/at91/at91_machdep.c +++ b/sys/arm/at91/at91_machdep.c @@ -132,8 +132,6 @@ struct pv_addr undstack; struct pv_addr abtstack; struct pv_addr kernelstack; -static struct trapframe proc0_tf; - /* Static device mappings. */ const struct pmap_devmap at91_devmap[] = { /* @@ -550,13 +548,7 @@ initarm(struct arm_boot_params *abp) undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); - proc_linkup0(&proc0, &thread0); - thread0.td_kstack = kernelstack.pv_va; - thread0.td_pcb = (struct pcb *) - (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; - thread0.td_pcb->pcb_flags = 0; - thread0.td_frame = &proc0_tf; - pcpup->pc_curpcb = thread0.td_pcb; + init_proc0(kernelstack.pv_va); arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL); |