blob: 952b0c0a244a1392a0aa6f6c73a060dbbb3af3b2 [file] [log] [blame]
Patrick Georgiafd4c872020-05-05 23:43:18 +02001/* intelmetool */
Patrick Georgiac959032020-05-05 22:49:26 +02002/* SPDX-License-Identifier: GPL-2.0-or-later */
Philipp Deppenwiese73add172016-08-26 02:10:51 +02003
4#include <inttypes.h>
5
6#ifndef __DARWIN__
7
8#define MSR_BOOTGUARD 0x13A
9
10typedef struct {
11 unsigned int ebx;
12 unsigned int edx;
13 unsigned int ecx;
14} regs_t;
15
Pablo Stebler9ac91d22020-09-18 10:32:22 +020016extern int msr_bootguard(uint64_t *msr);
Philipp Deppenwiese73add172016-08-26 02:10:51 +020017#endif