md_var.h (716718932f8cff345b411698c72daf245a907643) | md_var.h (824fc46089a4b86003cef4fcbfa8493591e87719) |
---|---|
1/*- 2 * Copyright (c) 1995 Bruce D. Evans. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47extern u_int amd_pminfo; 48extern u_int via_feature_rng; 49extern u_int via_feature_xcrypt; 50extern u_int cpu_clflush_line_size; 51extern u_int cpu_stdext_feature; 52extern u_int cpu_fxsr; 53extern u_int cpu_high; 54extern u_int cpu_id; | 1/*- 2 * Copyright (c) 1995 Bruce D. Evans. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47extern u_int amd_pminfo; 48extern u_int via_feature_rng; 49extern u_int via_feature_xcrypt; 50extern u_int cpu_clflush_line_size; 51extern u_int cpu_stdext_feature; 52extern u_int cpu_fxsr; 53extern u_int cpu_high; 54extern u_int cpu_id; |
55extern u_int cpu_max_ext_state_size; |
|
55extern u_int cpu_mxcsr_mask; 56extern u_int cpu_procinfo; 57extern u_int cpu_procinfo2; 58extern char cpu_vendor[]; 59extern u_int cpu_vendor_id; 60extern u_int cpu_mon_mwait_flags; 61extern u_int cpu_mon_min_size; 62extern u_int cpu_mon_max_size; --- 12 unchanged lines hidden (view full) --- 75#ifdef COMPAT_43 76extern int szosigcode; 77#endif 78extern uint32_t *vm_page_dump; 79extern int vm_page_dump_size; 80extern int workaround_erratum383; 81extern int _udatasel; 82extern int _ucodesel; | 56extern u_int cpu_mxcsr_mask; 57extern u_int cpu_procinfo; 58extern u_int cpu_procinfo2; 59extern char cpu_vendor[]; 60extern u_int cpu_vendor_id; 61extern u_int cpu_mon_mwait_flags; 62extern u_int cpu_mon_min_size; 63extern u_int cpu_mon_max_size; --- 12 unchanged lines hidden (view full) --- 76#ifdef COMPAT_43 77extern int szosigcode; 78#endif 79extern uint32_t *vm_page_dump; 80extern int vm_page_dump_size; 81extern int workaround_erratum383; 82extern int _udatasel; 83extern int _ucodesel; |
84extern int use_xsave; 85extern uint64_t xsave_mask; |
|
83 84typedef void alias_for_inthand_t(u_int cs, u_int ef, u_int esp, u_int ss); | 86 87typedef void alias_for_inthand_t(u_int cs, u_int ef, u_int esp, u_int ss); |
88struct pcb; 89union savefpu; |
|
85struct thread; 86struct reg; 87struct fpreg; 88struct dbreg; 89struct dumperinfo; 90 | 90struct thread; 91struct reg; 92struct fpreg; 93struct dbreg; 94struct dumperinfo; 95 |
96void *alloc_fpusave(int flags); |
|
91void bcopyb(const void *from, void *to, size_t len); 92void busdma_swi(void); 93void cpu_setregs(void); 94void cpu_switch_load_gs(void) __asm(__STRING(cpu_switch_load_gs)); 95void doreti_iret(void) __asm(__STRING(doreti_iret)); 96void doreti_iret_fault(void) __asm(__STRING(doreti_iret_fault)); 97void doreti_popl_ds(void) __asm(__STRING(doreti_popl_ds)); 98void doreti_popl_ds_fault(void) __asm(__STRING(doreti_popl_ds_fault)); --- 14 unchanged lines hidden (view full) --- 113int isa_nmi(int cd); 114vm_paddr_t kvtop(void *addr); 115void panicifcpuunsupported(void); 116void ppro_reenable_apic(void); 117void printcpuinfo(void); 118void setidt(int idx, alias_for_inthand_t *func, int typ, int dpl, int selec); 119int user_dbreg_trap(void); 120int minidumpsys(struct dumperinfo *); | 97void bcopyb(const void *from, void *to, size_t len); 98void busdma_swi(void); 99void cpu_setregs(void); 100void cpu_switch_load_gs(void) __asm(__STRING(cpu_switch_load_gs)); 101void doreti_iret(void) __asm(__STRING(doreti_iret)); 102void doreti_iret_fault(void) __asm(__STRING(doreti_iret_fault)); 103void doreti_popl_ds(void) __asm(__STRING(doreti_popl_ds)); 104void doreti_popl_ds_fault(void) __asm(__STRING(doreti_popl_ds_fault)); --- 14 unchanged lines hidden (view full) --- 119int isa_nmi(int cd); 120vm_paddr_t kvtop(void *addr); 121void panicifcpuunsupported(void); 122void ppro_reenable_apic(void); 123void printcpuinfo(void); 124void setidt(int idx, alias_for_inthand_t *func, int typ, int dpl, int selec); 125int user_dbreg_trap(void); 126int minidumpsys(struct dumperinfo *); |
127union savefpu *get_pcb_user_save_td(struct thread *td); 128union savefpu *get_pcb_user_save_pcb(struct pcb *pcb); 129struct pcb *get_pcb_td(struct thread *td); |
|
121 122#endif /* !_MACHINE_MD_VAR_H_ */ | 130 131#endif /* !_MACHINE_MD_VAR_H_ */ |