mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 02:05:54 +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
30 lines
739 B
C
30 lines
739 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
// Copyright (C) 2017 Arm Ltd.
|
|
#ifndef __ASM_VMAP_STACK_H
|
|
#define __ASM_VMAP_STACK_H
|
|
|
|
#include <linux/bug.h>
|
|
#include <linux/gfp.h>
|
|
#include <linux/kconfig.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/pgtable.h>
|
|
#include <asm/memory.h>
|
|
#include <asm/thread_info.h>
|
|
|
|
/*
|
|
* To ensure that VMAP'd stack overflow detection works correctly, all VMAP'd
|
|
* stacks need to have the same alignment.
|
|
*/
|
|
static inline unsigned long *arch_alloc_vmap_stack(size_t stack_size, int node)
|
|
{
|
|
void *p;
|
|
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_VMAP_STACK));
|
|
|
|
p = __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node,
|
|
__builtin_return_address(0));
|
|
return kasan_reset_tag(p);
|
|
}
|
|
|
|
#endif /* __ASM_VMAP_STACK_H */
|