x86_var.h (a8b75a57c9b2cb3388746f097a55086a0f8c5d38) x86_var.h (d0bc4b466683d17b84f9acafe4c3cc746f860dbf)
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

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

149void nmi_handle_intr(u_int type, struct trapframe *frame);
150void pagecopy(void *from, void *to);
151void printcpuinfo(void);
152int pti_get_default(void);
153int user_dbreg_trap(register_t dr6);
154int minidumpsys(struct dumperinfo *);
155struct pcb *get_pcb_td(struct thread *td);
156
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

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

149void nmi_handle_intr(u_int type, struct trapframe *frame);
150void pagecopy(void *from, void *to);
151void printcpuinfo(void);
152int pti_get_default(void);
153int user_dbreg_trap(register_t dr6);
154int minidumpsys(struct dumperinfo *);
155struct pcb *get_pcb_td(struct thread *td);
156
157/*
158 * MSR ops for x86_msr_op()
159 */
157#define MSR_OP_ANDNOT 0x00000001
158#define MSR_OP_OR 0x00000002
159#define MSR_OP_WRITE 0x00000003
160#define MSR_OP_ANDNOT 0x00000001
161#define MSR_OP_OR 0x00000002
162#define MSR_OP_WRITE 0x00000003
163#define MSR_OP_READ 0x00000004
164
165/*
166 * Where and which execution mode
167 */
160#define MSR_OP_LOCAL 0x10000000
168#define MSR_OP_LOCAL 0x10000000
161#define MSR_OP_SCHED 0x20000000
162#define MSR_OP_RENDEZVOUS 0x30000000
163void x86_msr_op(u_int msr, u_int op, uint64_t arg1);
169#define MSR_OP_SCHED_ALL 0x20000000
170#define MSR_OP_SCHED_ONE 0x30000000
171#define MSR_OP_RENDEZVOUS_ALL 0x40000000
172#define MSR_OP_RENDEZVOUS_ONE 0x50000000
173#define MSR_OP_CPUID(id) ((id) << 8)
164
174
175void x86_msr_op(u_int msr, u_int op, uint64_t arg1, uint64_t *res);
176
165#endif
177#endif