2020-05-05 23:43:18 +02:00
|
|
|
/* intelmetool */
|
|
|
|
/*
|
2016-08-26 02:10:51 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
2019-02-23 02:38:15 +01:00
|
|
|
* the License, or (at your option) any later version.
|
2016-08-26 02:10:51 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#ifndef __DARWIN__
|
|
|
|
|
|
|
|
#define MSR_BOOTGUARD 0x13A
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned int ebx;
|
|
|
|
unsigned int edx;
|
|
|
|
unsigned int ecx;
|
|
|
|
} regs_t;
|
|
|
|
|
|
|
|
extern int msr_bootguard(uint64_t *msr, int debug);
|
|
|
|
#endif
|