x86_var.h (ea6020830c8f88e2b844ae9700c8ef58fbb51c75) x86_var.h (17edf152e556ec1bcbcdce2d34e1f1612f198d1e)
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

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

90extern u_int max_apic_id;
91extern int i386_read_exec;
92extern int pti;
93extern int hw_ibrs_ibpb_active;
94extern int hw_mds_disable;
95extern int hw_ssb_active;
96extern int x86_taa_enable;
97extern int cpu_flush_rsb_ctxsw;
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

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

90extern u_int max_apic_id;
91extern int i386_read_exec;
92extern int pti;
93extern int hw_ibrs_ibpb_active;
94extern int hw_mds_disable;
95extern int hw_ssb_active;
96extern int x86_taa_enable;
97extern int cpu_flush_rsb_ctxsw;
98extern int x86_rngds_mitg_enable;
98
99struct pcb;
100struct thread;
101struct reg;
102struct fpreg;
103struct dbreg;
104struct dumperinfo;
105struct trapframe;

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

134int is_physical_memory(vm_paddr_t addr);
135int isa_nmi(int cd);
136void handle_ibrs_entry(void);
137void handle_ibrs_exit(void);
138void hw_ibrs_recalculate(bool all_cpus);
139void hw_mds_recalculate(void);
140void hw_ssb_recalculate(bool all_cpus);
141void x86_taa_recalculate(void);
99
100struct pcb;
101struct thread;
102struct reg;
103struct fpreg;
104struct dbreg;
105struct dumperinfo;
106struct trapframe;

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

135int is_physical_memory(vm_paddr_t addr);
136int isa_nmi(int cd);
137void handle_ibrs_entry(void);
138void handle_ibrs_exit(void);
139void hw_ibrs_recalculate(bool all_cpus);
140void hw_mds_recalculate(void);
141void hw_ssb_recalculate(bool all_cpus);
142void x86_taa_recalculate(void);
143void x86_rngds_mitg_recalculate(bool all_cpus);
142void nmi_call_kdb(u_int cpu, u_int type, struct trapframe *frame);
143void nmi_call_kdb_smp(u_int type, struct trapframe *frame);
144void nmi_handle_intr(u_int type, struct trapframe *frame);
145void pagecopy(void *from, void *to);
146void printcpuinfo(void);
147int pti_get_default(void);
148int user_dbreg_trap(register_t dr6);
149int minidumpsys(struct dumperinfo *);
150struct pcb *get_pcb_td(struct thread *td);
151
152#define MSR_OP_ANDNOT 0x00000001
153#define MSR_OP_OR 0x00000002
154#define MSR_OP_WRITE 0x00000003
155#define MSR_OP_LOCAL 0x10000000
156#define MSR_OP_SCHED 0x20000000
157#define MSR_OP_RENDEZVOUS 0x30000000
158void x86_msr_op(u_int msr, u_int op, uint64_t arg1);
159
160#endif
144void nmi_call_kdb(u_int cpu, u_int type, struct trapframe *frame);
145void nmi_call_kdb_smp(u_int type, struct trapframe *frame);
146void nmi_handle_intr(u_int type, struct trapframe *frame);
147void pagecopy(void *from, void *to);
148void printcpuinfo(void);
149int pti_get_default(void);
150int user_dbreg_trap(register_t dr6);
151int minidumpsys(struct dumperinfo *);
152struct pcb *get_pcb_td(struct thread *td);
153
154#define MSR_OP_ANDNOT 0x00000001
155#define MSR_OP_OR 0x00000002
156#define MSR_OP_WRITE 0x00000003
157#define MSR_OP_LOCAL 0x10000000
158#define MSR_OP_SCHED 0x20000000
159#define MSR_OP_RENDEZVOUS 0x30000000
160void x86_msr_op(u_int msr, u_int op, uint64_t arg1);
161
162#endif