<commit_before>/*-
 * Copyright (c) 2001 <NAME>.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *	from: @(#)genassym.c	5.11 (Berkeley) 5/10/91
 * $FreeBSD$
 */

#include <sys/param.h>
#include <sys/assym.h>
#include <sys/errno.h>
#include <sys/proc.h>
#include <sys/queue.h>
#include <sys/user.h>

#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_kern.h>
#include <vm/vm_page.h>
#include <vm/vm_map.h>

#include <machine/asi.h>
#include <machine/vmparam.h>
#include <machine/cpufunc.h>
#include <machine/fp.h>
#include <machine/frame.h>
#include <machine/globals.h>
#include <machine/intr_machdep.h>
#include <machine/pcb.h>
#include <machine/pstate.h>
#include <machine/setjmp.h>
#include <machine/pv.h>
#include <machine/tte.h>
#include <machine/tlb.h>
#include <machine/tsb.h>

/*
 * XXX: gas, as of version 2.11.2, does not know this ASI (and some other
 * UltraSparc specific ones). This definition will probably get us into trouble
 * as soon as they are added.
 */
ASSYM(ASI_BLK_S, ASI_BLK_S);

ASSYM(EFAULT, EFAULT);
ASSYM(ENAMETOOLONG, ENAMETOOLONG);

ASSYM(UPAGES, UPAGES);
ASSYM(PAGE_SIZE, PAGE_SIZE);

ASSYM(PSTATE_AG, PSTATE_AG);
ASSYM(PSTATE_IE, PSTATE_IE);
ASSYM(PSTATE_PRIV, PSTATE_PRIV);
ASSYM(PSTATE_PEF, PSTATE_PEF);
ASSYM(PSTATE_MG, PSTATE_MG);
ASSYM(PSTATE_IG, PSTATE_IG);

ASSYM(TSTATE_AG, TSTATE_AG);
ASSYM(TSTATE_IE, TSTATE_IE);
ASSYM(TSTATE_PRIV, TSTATE_PRIV);
ASSYM(TSTATE_PEF, TSTATE_PEF);
ASSYM(TSTATE_MG, TSTATE_MG);
ASSYM(TSTATE_IG, TSTATE_IG);

ASSYM(FPRS_DL, FPRS_DL);
ASSYM(FPRS_DU, FPRS_DU);
ASSYM(FPRS_FEF, FPRS_FEF);

ASSYM(TLB_DAR_TSB_USER_PRIMARY, TLB_DAR_SLOT(TLB_SLOT_TSB_USER_PRIMARY));
ASSYM(TLB_DEMAP_NUCLEUS, TLB_DEMAP_NUCLEUS);

ASSYM(TSB_USER_MIN_ADDRESS, TSB_USER_MIN_ADDRESS);
ASSYM(TSB_PRIMARY_BUCKET_SHIFT, TSB_PRIMARY_BUCKET_SHIFT);
ASSYM(TSB_KERNEL_MIN_ADDRESS, TSB_KERNEL_MIN_ADDRESS);
ASSYM(TSB_PRIMARY_MASK_WIDTH, TSB_MASK_WIDTH);
ASSYM(TSB_PRIMARY_STTE_MASK, TSB_PRIMARY_STTE_MASK);
ASSYM(TSB_PRIMARY_STTE_SHIFT, TSB_PRIMARY_STTE_SHIFT);
ASSYM(TSB_1M_STTE_SHIFT, TSB_1M_STTE_SHIFT);
ASSYM(TSB_KERNEL_MASK, TSB_KERNEL_MASK);

ASSYM(PAGE_SHIFT, PAGE_SHIFT);
ASSYM(PAGE_MASK, PAGE_MASK);

ASSYM(TTE_DATA, offsetof(struct tte, tte_data));
ASSYM(TTE_TAG, offsetof(struct tte, tte_tag));
ASSYM(TTE_SHIFT, TTE_SHIFT);
ASSYM(ST_TTE, offsetof(struct stte, st_tte));
ASSYM(STTE_SHIFT, STTE_SHIFT);
ASSYM(STTE_SIZEOF, sizeof(struct stte));

ASSYM(TD_VA_LOW_MASK, TD_VA_LOW_MASK);
ASSYM(TD_VA_LOW_SHIFT, TD_VA_LOW_SHIFT);
ASSYM(TD_EXEC, TD_EXEC);
ASSYM(TD_INIT, TD_INIT);
ASSYM(TD_MOD, TD_MOD);
ASSYM(TD_REF, TD_REF);
ASSYM(TD_W, TD_W);

ASSYM(TT_VA_MASK, TT_VA_MASK);
ASSYM(TT_VA_SHIFT, TT_VA_SHIFT);
ASSYM(TT_CTX_SHIFT, TT_CTX_SHIFT);

ASSYM(GD_CURPROC, offsetof(struct globaldata, gd_curproc));
ASSYM(GD_CURPCB, offsetof(struct globaldata, gd_curpcb));

ASSYM(GD_IQ, offsetof(struct globaldata, gd_iq));
ASSYM(GD_IVT, offsetof(struct globaldata, gd_ivt));

ASSYM(IQ_MASK, IQ_MASK);
ASSYM(IQ_HEAD, offsetof(struct intr_queue, iq_head));
ASSYM(IQ_TAIL, offsetof(struct intr_queue, iq_tail));

ASSYM(IQE_SHIFT, IQE_SHIFT);
ASSYM(IQE_TAG, offsetof(struct iqe, iqe_tag));
ASSYM(IQE_PRI, offsetof(struct iqe, iqe_pri));
ASSYM(IQE_VEC, offsetof(struct iqe, iqe_vec));
ASSYM(IQE_FUNC, offsetof(struct iqe, iqe_func));
ASSYM(IQE_ARG, offsetof(struct iqe, iqe_arg));

ASSYM(IV_SHIFT, IV_SHIFT);
ASSYM(IV_FUNC, offsetof(struct intr_vector, iv_func));
ASSYM(IV_ARG, offsetof(struct intr_vector, iv_arg));
ASSYM(IV_PRI, offsetof(struct intr_vector, iv_pri));

ASSYM(JB_FP, offsetof(struct _jmp_buf, _jb[_JB_FP]));
ASSYM(JB_PC, offsetof(struct _jmp_buf, _jb[_JB_PC]));
ASSYM(JB_SP, offsetof(struct _jmp_buf, _jb[_JB_SP]));

ASSYM(P_ADDR, offsetof(struct proc, p_addr));
ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
ASSYM(P_FRAME, offsetof(struct proc, p_frame));

ASSYM(PCB_FPSTATE, offsetof(struct pcb, pcb_fpstate));
ASSYM(PCB_FP, offsetof(struct pcb, pcb_fp));
ASSYM(PCB_PC, offsetof(struct pcb, pcb_pc));
ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));

ASSYM(U_PCB, offsetof(struct user, u_pcb));

ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
ASSYM(PM_CONTEXT, offsetof(struct pmap, pm_context));
ASSYM(PM_STTE, offsetof(struct pmap, pm_stte));

ASSYM(FP_FB0, offsetof(struct fpstate, fp_fb[0]));
ASSYM(FP_FB1, offsetof(struct fpstate, fp_fb[1]));
ASSYM(FP_FB2, offsetof(struct fpstate, fp_fb[2]));
ASSYM(FP_FB3, offsetof(struct fpstate, fp_fb[3]));
ASSYM(FP_FSR, offsetof(struct fpstate, fp_fsr));
ASSYM(FP_FPRS, offsetof(struct fpstate, fp_fprs));

ASSYM(F_L0, offsetof(struct frame, f_local[0]));
ASSYM(F_L1, offsetof(struct frame, f_local[1]));
ASSYM(F_L2, offsetof(struct frame, f_local[2]));
ASSYM(F_L3, offsetof(struct frame, f_local[3]));
ASSYM(F_L4, offsetof(struct frame, f_local[4]));
ASSYM(F_L5, offsetof(struct frame, f_local[5]));
ASSYM(F_L6, offsetof(struct frame, f_local[6]));
ASSYM(F_L7, offsetof(struct frame, f_local[7]));
ASSYM(F_I0, offsetof(struct frame, f_in[0]));
ASSYM(F_I1, offsetof(struct frame, f_in[1]));
ASSYM(F_I2, offsetof(struct frame, f_in[2]));
ASSYM(F_I3, offsetof(struct frame, f_in[3]));
ASSYM(F_I4, offsetof(struct frame, f_in[4]));
ASSYM(F_I5, offsetof(struct frame, f_in[5]));
ASSYM(F_I6, offsetof(struct frame, f_in[6]));
ASSYM(F_I7, offsetof(struct frame, f_in[7]));
ASSYM(CCFSZ, sizeof(struct frame));
ASSYM(SPOFF, SPOFF);

ASSYM(KF_FP, offsetof(struct kdbframe, kf_fp));
ASSYM(KF_SIZEOF, sizeof(struct kdbframe));

ASSYM(MF_SFAR, offsetof(struct mmuframe, mf_sfar));
ASSYM(MF_SFSR, offsetof(struct mmuframe, mf_sfsr));
ASSYM(MF_TAR, offsetof(struct mmuframe, mf_tar));
ASSYM(MF_SIZEOF, sizeof(struct mmuframe));

ASSYM(TF_G0, offsetof(struct trapframe, tf_global[0]));
ASSYM(TF_G1, offsetof(struct trapframe, tf_global[1]));
ASSYM(TF_G2, offsetof(struct trapframe, tf_global[2]));
ASSYM(TF_G3, offsetof(struct trapframe, tf_global[3]));
ASSYM(TF_G4, offsetof(struct trapframe, tf_global[4]));
ASSYM(TF_G5, offsetof(struct trapframe, tf_global[5]));
ASSYM(TF_G6, offsetof(struct trapframe, tf_global[6]));
ASSYM(TF_G7, offsetof(struct trapframe, tf_global[7]));
ASSYM(TF_O0, offsetof(struct trapframe, tf_out[0]));
ASSYM(TF_O1, offsetof(struct trapframe, tf_out[1]));
ASSYM(TF_O2, offsetof(struct trapframe, tf_out[2]));
ASSYM(TF_O3, offsetof(struct trapframe, tf_out[3]));
ASSYM(TF_O4, offsetof(struct trapframe, tf_out[4]));
ASSYM(TF_O5, offsetof(struct trapframe, tf_out[5]));
ASSYM(TF_O6, offsetof(struct trapframe, tf_out[6]));
ASSYM(TF_O7, offsetof(struct trapframe, tf_out[7]));
ASSYM(TF_PIL, offsetof(struct trapframe, tf_pil));<commit_msg>Add definitions for new assembler code.<commit_after>/*-
 * Copyright (c) 2001 <NAME>.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *	from: @(#)genassym.c	5.11 (Berkeley) 5/10/91
 * $FreeBSD$
 */

#include <sys/param.h>
#include <sys/assym.h>
#include <sys/errno.h>
#include <sys/proc.h>
#include <sys/queue.h>
#include <sys/user.h>

#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_kern.h>
#include <vm/vm_page.h>
#include <vm/vm_map.h>

#include <machine/asi.h>
#include <machine/vmparam.h>
#include <machine/cpufunc.h>
#include <machine/fp.h>
#include <machine/frame.h>
#include <machine/globals.h>
#include <machine/intr_machdep.h>
#include <machine/pcb.h>
#include <machine/pstate.h>
#include <machine/setjmp.h>
#include <machine/pv.h>
#include <machine/tte.h>
#include <machine/tlb.h>
#include <machine/tsb.h>
#include <machine/tstate.h>

/*
 * XXX: gas, as of version 2.11.2, does not know this ASI (and some other
 * UltraSparc specific ones). This definition will probably get us into trouble
 * as soon as they are added.
 */
ASSYM(ASI_BLK_S, ASI_BLK_S);

ASSYM(EFAULT, EFAULT);
ASSYM(ENAMETOOLONG, ENAMETOOLONG);

ASSYM(UPAGES, UPAGES);
ASSYM(PAGE_SIZE, PAGE_SIZE);

ASSYM(PSTATE_AG, PSTATE_AG);
ASSYM(PSTATE_IE, PSTATE_IE);
ASSYM(PSTATE_PRIV, PSTATE_PRIV);
ASSYM(PSTATE_PEF, PSTATE_PEF);
ASSYM(PSTATE_MG, PSTATE_MG);
ASSYM(PSTATE_IG, PSTATE_IG);

ASSYM(VER_MAXWIN_MASK, VER_MAXWIN_MASK);

ASSYM(TSTATE_CWP_MASK, TSTATE_CWP_MASK);
ASSYM(TSTATE_AG, TSTATE_AG);
ASSYM(TSTATE_IE, TSTATE_IE);
ASSYM(TSTATE_PRIV, TSTATE_PRIV);
ASSYM(TSTATE_PEF, TSTATE_PEF);
ASSYM(TSTATE_MG, TSTATE_MG);
ASSYM(TSTATE_IG, TSTATE_IG);

ASSYM(FPRS_DL, FPRS_DL);
ASSYM(FPRS_DU, FPRS_DU);
ASSYM(FPRS_FEF, FPRS_FEF);

ASSYM(TLB_DAR_TSB_USER_PRIMARY, TLB_DAR_SLOT(TLB_SLOT_TSB_USER_PRIMARY));
ASSYM(TLB_DEMAP_NUCLEUS, TLB_DEMAP_NUCLEUS);

ASSYM(TSB_USER_MIN_ADDRESS, TSB_USER_MIN_ADDRESS);
ASSYM(TSB_PRIMARY_BUCKET_SHIFT, TSB_PRIMARY_BUCKET_SHIFT);
ASSYM(TSB_KERNEL_MIN_ADDRESS, TSB_KERNEL_MIN_ADDRESS);
ASSYM(TSB_PRIMARY_MASK_WIDTH, TSB_MASK_WIDTH);
ASSYM(TSB_PRIMARY_STTE_MASK, TSB_PRIMARY_STTE_MASK);
ASSYM(TSB_PRIMARY_STTE_SHIFT, TSB_PRIMARY_STTE_SHIFT);
ASSYM(TSB_1M_STTE_SHIFT, TSB_1M_STTE_SHIFT);
ASSYM(TSB_KERNEL_MASK, TSB_KERNEL_MASK);

ASSYM(PAGE_SHIFT, PAGE_SHIFT);
ASSYM(PAGE_MASK, PAGE_MASK);

ASSYM(TTE_DATA, offsetof(struct tte, tte_data));
ASSYM(TTE_TAG, offsetof(struct tte, tte_tag));
ASSYM(TTE_SHIFT, TTE_SHIFT);
ASSYM(ST_TTE, offsetof(struct stte, st_tte));
ASSYM(STTE_SHIFT, STTE_SHIFT);
ASSYM(STTE_SIZEOF, sizeof(struct stte));

ASSYM(TD_VA_LOW_MASK, TD_VA_LOW_MASK);
ASSYM(TD_VA_LOW_SHIFT, TD_VA_LOW_SHIFT);
ASSYM(TD_EXEC, TD_EXEC);
ASSYM(TD_INIT, TD_INIT);
ASSYM(TD_MOD, TD_MOD);
ASSYM(TD_REF, TD_REF);
ASSYM(TD_W, TD_W);

ASSYM(TT_VA_MASK, TT_VA_MASK);
ASSYM(TT_VA_SHIFT, TT_VA_SHIFT);
ASSYM(TT_CTX_SHIFT, TT_CTX_SHIFT);

ASSYM(GD_CURPROC, offsetof(struct globaldata, gd_curproc));
ASSYM(GD_CURPCB, offsetof(struct globaldata, gd_curpcb));

ASSYM(GD_IQ, offsetof(struct globaldata, gd_iq));
ASSYM(GD_IVT, offsetof(struct globaldata, gd_ivt));

ASSYM(IQ_MASK, IQ_MASK);
ASSYM(IQ_HEAD, offsetof(struct intr_queue, iq_head));
ASSYM(IQ_TAIL, offsetof(struct intr_queue, iq_tail));

ASSYM(IQE_SHIFT, IQE_SHIFT);
ASSYM(IQE_TAG, offsetof(struct iqe, iqe_tag));
ASSYM(IQE_PRI, offsetof(struct iqe, iqe_pri));
ASSYM(IQE_VEC, offsetof(struct iqe, iqe_vec));
ASSYM(IQE_FUNC, offsetof(struct iqe, iqe_func));
ASSYM(IQE_ARG, offsetof(struct iqe, iqe_arg));

ASSYM(IV_SHIFT, IV_SHIFT);
ASSYM(IV_FUNC, offsetof(struct intr_vector, iv_func));
ASSYM(IV_ARG, offsetof(struct intr_vector, iv_arg));
ASSYM(IV_PRI, offsetof(struct intr_vector, iv_pri));

ASSYM(JB_FP, offsetof(struct _jmp_buf, _jb[_JB_FP]));
ASSYM(JB_PC, offsetof(struct _jmp_buf, _jb[_JB_PC]));
ASSYM(JB_SP, offsetof(struct _jmp_buf, _jb[_JB_SP]));

ASSYM(P_ADDR, offsetof(struct proc, p_addr));
ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
ASSYM(P_FRAME, offsetof(struct proc, p_frame));

ASSYM(PCB_FPSTATE, offsetof(struct pcb, pcb_fpstate));
ASSYM(PCB_FP, offsetof(struct pcb, pcb_fp));
ASSYM(PCB_PC, offsetof(struct pcb, pcb_pc));
ASSYM(PCB_Y, offsetof(struct pcb, pcb_pc));
ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
ASSYM(PCB_INWINOP, offsetof(struct pcb, pcb_inwinop));
ASSYM(PCB_CWP, offsetof(struct pcb, pcb_cwp));
ASSYM(PCB_WS_INUSE, offsetof(struct pcb, pcb_ws_inuse));
ASSYM(PCB_WSCRATCH, offsetof(struct pcb, pcb_wscratch));

ASSYM(PCB_CWP_EMPTY, PCB_CWP_EMPTY);

ASSYM(U_PCB, offsetof(struct user, u_pcb));

ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
ASSYM(PM_CONTEXT, offsetof(struct pmap, pm_context));
ASSYM(PM_STTE, offsetof(struct pmap, pm_stte));

ASSYM(FP_FB0, offsetof(struct fpstate, fp_fb[0]));
ASSYM(FP_FB1, offsetof(struct fpstate, fp_fb[1]));
ASSYM(FP_FB2, offsetof(struct fpstate, fp_fb[2]));
ASSYM(FP_FB3, offsetof(struct fpstate, fp_fb[3]));
ASSYM(FP_FSR, offsetof(struct fpstate, fp_fsr));
ASSYM(FP_FPRS, offsetof(struct fpstate, fp_fprs));

ASSYM(F_L0, offsetof(struct frame, f_local[0]));
ASSYM(F_L1, offsetof(struct frame, f_local[1]));
ASSYM(F_L2, offsetof(struct frame, f_local[2]));
ASSYM(F_L3, offsetof(struct frame, f_local[3]));
ASSYM(F_L4, offsetof(struct frame, f_local[4]));
ASSYM(F_L5, offsetof(struct frame, f_local[5]));
ASSYM(F_L6, offsetof(struct frame, f_local[6]));
ASSYM(F_L7, offsetof(struct frame, f_local[7]));
ASSYM(F_I0, offsetof(struct frame, f_in[0]));
ASSYM(F_I1, offsetof(struct frame, f_in[1]));
ASSYM(F_I2, offsetof(struct frame, f_in[2]));
ASSYM(F_I3, offsetof(struct frame, f_in[3]));
ASSYM(F_I4, offsetof(struct frame, f_in[4]));
ASSYM(F_I5, offsetof(struct frame, f_in[5]));
ASSYM(F_I6, offsetof(struct frame, f_in[6]));
ASSYM(F_I7, offsetof(struct frame, f_in[7]));
ASSYM(CCFSZ, sizeof(struct frame));
ASSYM(SPOFF, SPOFF);

ASSYM(WSF_L0, offsetof(struct wsframe, wsf_local[0]));
ASSYM(WSF_L1, offsetof(struct wsframe, wsf_local[1]));
ASSYM(WSF_L2, offsetof(struct wsframe, wsf_local[2]));
ASSYM(WSF_L3, offsetof(struct wsframe, wsf_local[3]));
ASSYM(WSF_L4, offsetof(struct wsframe, wsf_local[4]));
ASSYM(WSF_L5, offsetof(struct wsframe, wsf_local[5]));
ASSYM(WSF_L6, offsetof(struct wsframe, wsf_local[6]));
ASSYM(WSF_L7, offsetof(struct wsframe, wsf_local[7]));
ASSYM(WSF_I0, offsetof(struct wsframe, wsf_in[0]));
ASSYM(WSF_I1, offsetof(struct wsframe, wsf_in[1]));
ASSYM(WSF_I2, offsetof(struct wsframe, wsf_in[2]));
ASSYM(WSF_I3, offsetof(struct wsframe, wsf_in[3]));
ASSYM(WSF_I4, offsetof(struct wsframe, wsf_in[4]));
ASSYM(WSF_I5, offsetof(struct wsframe, wsf_in[5]));
ASSYM(WSF_I6, offsetof(struct wsframe, wsf_in[6]));
ASSYM(WSF_I7, offsetof(struct wsframe, wsf_in[7]));
ASSYM(WSF_SP, offsetof(struct wsframe, wsf_sp));
ASSYM(WSF_INUSE, offsetof(struct wsframe, wsf_inuse));
ASSYM(WSF_SIZEOF, sizeof(struct wsframe));

ASSYM(KF_FP, offsetof(struct kdbframe, kf_fp));
ASSYM(KF_SIZEOF, sizeof(struct kdbframe));

ASSYM(MF_SFAR, offsetof(struct mmuframe, mf_sfar));
ASSYM(MF_SFSR, offsetof(struct mmuframe, mf_sfsr));
ASSYM(MF_TAR, offsetof(struct mmuframe, mf_tar));
ASSYM(MF_SIZEOF, sizeof(struct mmuframe));

ASSYM(TF_G0, offsetof(struct trapframe, tf_global[0]));
ASSYM(TF_G1, offsetof(struct trapframe, tf_global[1]));
ASSYM(TF_G2, offsetof(struct trapframe, tf_global[2]));
ASSYM(TF_G3, offsetof(struct trapframe, tf_global[3]));
ASSYM(TF_G4, offsetof(struct trapframe, tf_global[4]));
ASSYM(TF_G5, offsetof(struct trapframe, tf_global[5]));
ASSYM(TF_G6, offsetof(struct trapframe, tf_global[6]));
ASSYM(TF_G7, offsetof(struct trapframe, tf_global[7]));
ASSYM(TF_O0, offsetof(struct trapframe, tf_out[0]));
ASSYM(TF_O1, offsetof(struct trapframe, tf_out[1]));
ASSYM(TF_O2, offsetof(struct trapframe, tf_out[2]));
ASSYM(TF_O3, offsetof(struct trapframe, tf_out[3]));
ASSYM(TF_O4, offsetof(struct trapframe, tf_out[4]));
ASSYM(TF_O5, offsetof(struct trapframe, tf_out[5]));
ASSYM(TF_O6, offsetof(struct trapframe, tf_out[6]));
ASSYM(TF_O7, offsetof(struct trapframe, tf_out[7]));
ASSYM(TF_PIL, offsetof(struct trapframe, tf_pil));
{'fraction_non_alphanumeric': 0.13503713667465933, 'fraction_numerical': 0.012632317679396456, 'mean_word_length': 8.35960591133005, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '100916', 'n_tokens_mistral': 7464, 'n_tokens_neox': 6972, 'n_words': 1471}