blob: 1f6a1175afbc86c3b4322eb4fdb6c27c04edbccb [file] [log] [blame]
Philipp Deppenwiese73add172016-08-26 02:10:51 +02001/* intelmetool
2 *
3 * Copyright (C) 2013-2016 Philipp Deppenwiese <zaolin@das-labor.org>
4 * Copyright (C) 2013-2016 Alexander Couzens <lynxis@fe80.eu>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
Damien Zammitf0a91282019-02-23 12:38:15 +11009 * the License, or (at your option) any later version.
Philipp Deppenwiese73add172016-08-26 02:10:51 +020010 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <inttypes.h>
18
19#ifndef __DARWIN__
20
21#define MSR_BOOTGUARD 0x13A
22
23typedef struct {
24 unsigned int ebx;
25 unsigned int edx;
26 unsigned int ecx;
27} regs_t;
28
29extern int msr_bootguard(uint64_t *msr, int debug);
30#endif