linux32_machdep.c (704547ce1ca56e1123048cd152ed4e468d41d703) linux32_machdep.c (3b57ddb029daf225a8385dade491019269da82e8)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2004 Tim J. Robbins
5 * Copyright (c) 2002 Doug Rabson
6 * Copyright (c) 2000 Marcel Moolenaar
7 * All rights reserved.
8 *

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

413 pcb->pcb_gsbase = (register_t)info.base_addr;
414 td->td_frame->tf_gs = GSEL(GUGS32_SEL, SEL_UPL);
415 }
416
417 return (error);
418}
419
420int
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2004 Tim J. Robbins
5 * Copyright (c) 2002 Doug Rabson
6 * Copyright (c) 2000 Marcel Moolenaar
7 * All rights reserved.
8 *

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

413 pcb->pcb_gsbase = (register_t)info.base_addr;
414 td->td_frame->tf_gs = GSEL(GUGS32_SEL, SEL_UPL);
415 }
416
417 return (error);
418}
419
420int
421linux_set_upcall_kse(struct thread *td, register_t stack)
421linux_set_upcall(struct thread *td, register_t stack)
422{
423
424 if (stack)
425 td->td_frame->tf_rsp = stack;
426
427 /*
428 * The newly created Linux thread returns
429 * to the user space by the same path that a parent do.

--- 338 unchanged lines hidden ---
422{
423
424 if (stack)
425 td->td_frame->tf_rsp = stack;
426
427 /*
428 * The newly created Linux thread returns
429 * to the user space by the same path that a parent do.

--- 338 unchanged lines hidden ---