vm_machdep.c (243040) | vm_machdep.c (245942) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986 The Regents of the University of California. 3 * Copyright (c) 1989, 1990 William Jolitz 4 * Copyright (c) 1994 John Dyson 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 27 unchanged lines hidden (view full) --- 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 40 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ 41 */ 42 43#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986 The Regents of the University of California. 3 * Copyright (c) 1989, 1990 William Jolitz 4 * Copyright (c) 1994 John Dyson 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 27 unchanged lines hidden (view full) --- 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 40 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/arm/arm/vm_machdep.c 243040 2012-11-14 20:01:40Z kib $"); | 44__FBSDID("$FreeBSD: head/sys/arm/arm/vm_machdep.c 245942 2013-01-26 08:55:04Z andrew $"); |
45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> 49#include <sys/malloc.h> 50#include <sys/mbuf.h> 51#include <sys/proc.h> 52#include <sys/socketvar.h> --- 340 unchanged lines hidden (view full) --- 393 394void 395cpu_thread_alloc(struct thread *td) 396{ 397 td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * 398 PAGE_SIZE) - 1; 399 td->td_frame = (struct trapframe *) 400 ((u_int)td->td_kstack + USPACE_SVC_STACK_TOP - sizeof(struct pcb)) - 1; | 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> 49#include <sys/malloc.h> 50#include <sys/mbuf.h> 51#include <sys/proc.h> 52#include <sys/socketvar.h> --- 340 unchanged lines hidden (view full) --- 393 394void 395cpu_thread_alloc(struct thread *td) 396{ 397 td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * 398 PAGE_SIZE) - 1; 399 td->td_frame = (struct trapframe *) 400 ((u_int)td->td_kstack + USPACE_SVC_STACK_TOP - sizeof(struct pcb)) - 1; |
401 /* 402 * Ensure td_frame is aligned to an 8 byte boundary as it will be 403 * placed into the stack pointer which must be 8 byte aligned in 404 * the ARM EABI. 405 */ 406 td->td_frame = (struct trapframe *)((u_int)td->td_frame & ~7); |
|
401#ifdef __XSCALE__ 402#ifndef CPU_XSCALE_CORE3 403 pmap_use_minicache(td->td_kstack, td->td_kstack_pages * PAGE_SIZE); 404#endif 405#endif 406} 407 408void --- 308 unchanged lines hidden --- | 407#ifdef __XSCALE__ 408#ifndef CPU_XSCALE_CORE3 409 pmap_use_minicache(td->td_kstack, td->td_kstack_pages * PAGE_SIZE); 410#endif 411#endif 412} 413 414void --- 308 unchanged lines hidden --- |