forked from Cr4sh/PeiBackdoor
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.h
42 lines (34 loc) · 1.22 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _CONFIG_H_
#define _CONFIG_H_
/*
Enable debug output generated by DbgMsg() function.
See src/debug.c for more details.
*/
#define BACKDOOR_DEBUG
/*
Write debug messages into the OVMF debug output port.
Uncomment this option if you're planning to run backdoor on QEMU.
*/
// #define BACKDOOR_DEBUG_OVMF
/*
Write debug messages into the physical memory region specified
in BACKDOOR_INFO_ADDR and BACKDOOR_INFO_SIZE.
Uncomment this option only if you're absolutely sure that backdoor
code will be executed after the RAM initialization. Otherwise it
will make your system unbootable.
*/
// #define BACKDOOR_DEBUG_MEM
// see src/PeiBackdoor.h for more details
#define BACKDOOR_INFO_ADDR 0x1000
#define BACKDOOR_INFO_SIZE 0x1000
/*
Write debug messages into the ttyS0 using 0x3F8 I/O port.
Most likely you will never need this option because COM port of
modern computers usually connected to PCH via dedicated Super I/O
chip and during PEI phase it's not initialized yet.
*/
// #define BACKDOOR_DEBUG_SERIAL
// serial port configuration for BACKDOOR_DEBUG_SERIAL
#define SERIAL_BAUDRATE 115200
#define SERIAL_PORT_NUM SERIAL_PORT_0
#endif