Philipp Deppenwiese | 73add17 | 2016-08-26 02:10:51 +0200 | [diff] [blame] | 1 | /* 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 Zammit | f0a9128 | 2019-02-23 12:38:15 +1100 | [diff] [blame] | 9 | * the License, or (at your option) any later version. |
Philipp Deppenwiese | 73add17 | 2016-08-26 02:10:51 +0200 | [diff] [blame] | 10 | * |
| 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 | |
| 23 | typedef struct { |
| 24 | unsigned int ebx; |
| 25 | unsigned int edx; |
| 26 | unsigned int ecx; |
| 27 | } regs_t; |
| 28 | |
| 29 | extern int msr_bootguard(uint64_t *msr, int debug); |
| 30 | #endif |