kse_asm.S (103973) | kse_asm.S (107035) |
---|---|
1/* 2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>. 3 * Copyright (c) 2001 Daniel Eischen <deischen@freebsd.org>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>. 3 * Copyright (c) 2001 Daniel Eischen <deischen@freebsd.org>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/tools/KSE/ksetest/kse_asm.S 103973 2002-09-25 18:14:38Z archie $ | 27 * $FreeBSD: head/tools/KSE/ksetest/kse_asm.S 107035 2002-11-18 02:02:08Z davidxu $ |
28 */ 29 30#include <machine/asm.h> | 28 */ 29 30#include <machine/asm.h> |
31__FBSDID("$FreeBSD: head/tools/KSE/ksetest/kse_asm.S 103973 2002-09-25 18:14:38Z archie $"); | 31__FBSDID("$FreeBSD: head/tools/KSE/ksetest/kse_asm.S 107035 2002-11-18 02:02:08Z davidxu $"); |
32 33/* 34 * Where do we define these? 35 */ 36#define MC_SIZE 640 /* sizeof mcontext_t */ 37#define UC_MC_OFFSET 16 /* offset to mcontext from ucontext */ 38#define UC_MC_LEN_OFFSET 96 /* offset to mc_len from mcontext */ 39#define MC_LEN_OFFSET 80 /* offset to mc_len from mcontext */ 40#define MC_FP_REGS_OFFSET 96 /* offset to FP regs from mcontext */ 41#define MC_FP_CW_OFFSET 96 /* offset to FP control word */ 42#define MC_OWNEDFP_OFFSET 88 /* offset to mc_ownedfp from mcontext */ | 32 33/* 34 * Where do we define these? 35 */ 36#define MC_SIZE 640 /* sizeof mcontext_t */ 37#define UC_MC_OFFSET 16 /* offset to mcontext from ucontext */ 38#define UC_MC_LEN_OFFSET 96 /* offset to mc_len from mcontext */ 39#define MC_LEN_OFFSET 80 /* offset to mc_len from mcontext */ 40#define MC_FP_REGS_OFFSET 96 /* offset to FP regs from mcontext */ 41#define MC_FP_CW_OFFSET 96 /* offset to FP control word */ 42#define MC_OWNEDFP_OFFSET 88 /* offset to mc_ownedfp from mcontext */ |
43#define KM_STACK_SP_OFFSET 32 /* offset to km_stack.ss_sp */ 44#define KM_STACK_SIZE_OFFSET 36 /* offset to km_stack.ss_sp */ 45#define KM_FUNC_OFFSET 28 /* offset to km_func */ | 43#define KM_STACK_SP_OFFSET 36 /* offset to km_stack.ss_sp */ 44#define KM_STACK_SIZE_OFFSET 40 /* offset to km_stack.ss_sp */ 45#define KM_FUNC_OFFSET 32 /* offset to km_func */ |
46 47/* 48 * int uts_to_thread(struct kse_thr_mailbox *tdp, 49 * struct kse_thr_mailbox **curthreadp); 50 * 51 * Does not return on success, returns -1 otherwise. 52 */ 53ENTRY(uts_to_thread) --- 97 unchanged lines hidden --- | 46 47/* 48 * int uts_to_thread(struct kse_thr_mailbox *tdp, 49 * struct kse_thr_mailbox **curthreadp); 50 * 51 * Does not return on success, returns -1 otherwise. 52 */ 53ENTRY(uts_to_thread) --- 97 unchanged lines hidden --- |