mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-23 08:26:23 -06:00
36 lines
685 B
C
36 lines
685 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef BADRAM_H
|
|
#define BADRAM_H
|
|
/**
|
|
* \file
|
|
*
|
|
* Provides functions for generating patterns for the Linux kernel BadRAM extension.
|
|
*
|
|
*//*
|
|
* Copyright (C) 2020-2022 Martin Whitaker.
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "test.h"
|
|
|
|
/**
|
|
* Initialises the pattern array.
|
|
*/
|
|
void badram_init(void);
|
|
|
|
/**
|
|
* Inserts a single faulty address into the pattern array. Returns
|
|
* true iff the array was changed.
|
|
*/
|
|
bool badram_insert(testword_t page, testword_t offset);
|
|
|
|
/**
|
|
* Displays the pattern array in the scrollable display region in the
|
|
* format used by the Linux kernel.
|
|
*/
|
|
void badram_display(void);
|
|
|
|
#endif // BADRAM_H
|