vm_machdep.c (a95e819956b0f8bdac2e4ad4fbc5ff9d968204d1) vm_machdep.c (740fd64d65cc70e1bfd61ab9e8061eb2d1f39c5d)
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

--- 283 unchanged lines hidden (view full) ---

292
293 tf->tf_usr_sp = ((int)stack->ss_sp + stack->ss_size
294 - sizeof(struct trapframe)) & ~7;
295 tf->tf_pc = (int)entry;
296 tf->tf_r0 = (int)arg;
297 tf->tf_spsr = PSR_USR32_MODE;
298}
299
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

--- 283 unchanged lines hidden (view full) ---

292
293 tf->tf_usr_sp = ((int)stack->ss_sp + stack->ss_size
294 - sizeof(struct trapframe)) & ~7;
295 tf->tf_pc = (int)entry;
296 tf->tf_r0 = (int)arg;
297 tf->tf_spsr = PSR_USR32_MODE;
298}
299
300void
300int
301cpu_set_user_tls(struct thread *td, void *tls_base)
302{
303
304 if (td != curthread)
305 td->td_md.md_tp = tls_base;
306 else {
307 critical_enter();
308 *(void **)ARM_TP_ADDRESS = tls_base;
309 critical_exit();
310 }
301cpu_set_user_tls(struct thread *td, void *tls_base)
302{
303
304 if (td != curthread)
305 td->td_md.md_tp = tls_base;
306 else {
307 critical_enter();
308 *(void **)ARM_TP_ADDRESS = tls_base;
309 critical_exit();
310 }
311 return (0);
311}
312
313void
314cpu_thread_exit(struct thread *td)
315{
316}
317
318void

--- 206 unchanged lines hidden ---
312}
313
314void
315cpu_thread_exit(struct thread *td)
316{
317}
318
319void

--- 206 unchanged lines hidden ---