mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-19 05:35:53 +00:00
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
35 lines
774 B
C
35 lines
774 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _MEMBLOCK_TEST_H
|
|
#define _MEMBLOCK_TEST_H
|
|
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <linux/types.h>
|
|
#include <linux/memblock.h>
|
|
#include <linux/sizes.h>
|
|
|
|
#define MEM_SIZE SZ_16K
|
|
|
|
/*
|
|
* Available memory registered with memblock needs to be valid for allocs
|
|
* test to run. This is a convenience wrapper for memory allocated in
|
|
* dummy_physical_memory_init() that is later registered with memblock
|
|
* in setup_memblock().
|
|
*/
|
|
struct test_memory {
|
|
void *base;
|
|
};
|
|
|
|
struct region {
|
|
phys_addr_t base;
|
|
phys_addr_t size;
|
|
};
|
|
|
|
void reset_memblock_regions(void);
|
|
void reset_memblock_attributes(void);
|
|
void setup_memblock(void);
|
|
void dummy_physical_memory_init(void);
|
|
void dummy_physical_memory_cleanup(void);
|
|
|
|
#endif
|