Date: Mon, 13 Aug 2012 01:33:10 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r239225 - in projects/armv6/sys/arm: lpc mv tegra Message-ID: <201208130133.q7D1XAMN068513@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Mon Aug 13 01:33:10 2012 New Revision: 239225 URL: http://svn.freebsd.org/changeset/base/239225 Log: Use init_proc0 for new platforms Modified: projects/armv6/sys/arm/lpc/lpc_machdep.c projects/armv6/sys/arm/mv/mv_machdep.c projects/armv6/sys/arm/tegra/tegra2_machdep.c Modified: projects/armv6/sys/arm/lpc/lpc_machdep.c ============================================================================== --- projects/armv6/sys/arm/lpc/lpc_machdep.c Mon Aug 13 01:20:23 2012 (r239224) +++ projects/armv6/sys/arm/lpc/lpc_machdep.c Mon Aug 13 01:33:10 2012 (r239225) @@ -148,8 +148,6 @@ struct pv_addr undstack; struct pv_addr abtstack; struct pv_addr kernelstack; -static struct trapframe proc0_tf; - static struct mem_region availmem_regions[FDT_MEM_REGIONS]; static int availmem_regions_sz; @@ -557,14 +555,7 @@ initarm(void *mdp, void *unused __unused undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); - proc_linkup0(&proc0, &thread0); - thread0.td_kstack = kernelstack.pv_va; - thread0.td_kstack_pages = KSTACK_PAGES; - 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); Modified: projects/armv6/sys/arm/mv/mv_machdep.c ============================================================================== --- projects/armv6/sys/arm/mv/mv_machdep.c Mon Aug 13 01:20:23 2012 (r239224) +++ projects/armv6/sys/arm/mv/mv_machdep.c Mon Aug 13 01:33:10 2012 (r239225) @@ -139,7 +139,6 @@ struct pv_addr kernelstack; void set_stackptrs(int cpu); -static struct trapframe proc0_tf; static struct mem_region availmem_regions[FDT_MEM_REGIONS]; static int availmem_regions_sz; Modified: projects/armv6/sys/arm/tegra/tegra2_machdep.c ============================================================================== --- projects/armv6/sys/arm/tegra/tegra2_machdep.c Mon Aug 13 01:20:23 2012 (r239224) +++ projects/armv6/sys/arm/tegra/tegra2_machdep.c Mon Aug 13 01:33:10 2012 (r239225) @@ -151,8 +151,6 @@ static struct pv_addr undstack; static struct pv_addr abtstack; static struct pv_addr kernelstack; -static struct trapframe proc0_tf; - #define PHYS2VIRT(x) ((x - KERNPHYSADDR) + KERNVIRTADDR) #define VIRT2PHYS(x) ((x - KERNVIRTADDR) + KERNPHYSADDR) @@ -642,15 +640,7 @@ initarm(void *mdp, void *unused __unused undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); - proc_linkup0(&proc0, &thread0); - thread0.td_kstack = kernelstack.pv_va; - thread0.td_kstack_pages = KSTACK_PAGES; - 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); dump_avail[0] = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208130133.q7D1XAMN068513>