blob: 5dc9a5689a7f5b9578f01d9ca9f800494311512e [file] [log] [blame]
Lawrence Tang02c801a2022-07-18 14:43:52 +01001#ifndef GEN_UTILS_H
2#define GEN_UTILS_H
3
4#include <stdlib.h>
5#include "../edk/BaseTypes.h"
6
Lawrence Tangde9707f2022-07-19 10:54:31 +01007#define CPER_ERROR_TYPES_KEYS (int []){1, 16, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26}
8
Lawrence Tang02c801a2022-07-18 14:43:52 +01009size_t generate_random_section(void** location, size_t size);
10UINT8* generate_random_bytes(size_t size);
11void init_random();
Lawrence Tangde9707f2022-07-19 10:54:31 +010012void create_valid_error_section(UINT8* start);
Lawrence Tang02c801a2022-07-18 14:43:52 +010013
14#endif