Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
2ba69d72
Commit
2ba69d72
authored
May 13, 2018
by
Philippe Gerum
Browse files
boilerplate/heapmem: move heap limit to ~4GB
parent
fa39f253
Changes
1
Show whitespace changes
Inline
Side-by-side
include/boilerplate/heapmem.h
View file @
2ba69d72
...
...
@@ -35,10 +35,10 @@
*/
#define HEAPMEM_MAX (HEAPMEM_PAGE_SHIFT - HEAPMEM_MIN_LOG2)
#define HEAPMEM_MIN_ALIGN (1U << HEAPMEM_MIN_LOG2)
/* Max size of an extent (
2
Gb). */
#define HEAPMEM_MAX_EXTSZ (
1U << 3
1)
/* Max size of an extent (
4
Gb
- HEAPMEM_PAGE_SIZE
). */
#define HEAPMEM_MAX_EXTSZ (
4294967295U - HEAPMEM_PAGE_SIZE +
1)
/* Bits we need for encoding a page # */
#define HEAPMEM_PGENT_BITS
(3
1
- HEAPMEM_PAGE_SHIFT
- 1
)
#define HEAPMEM_PGENT_BITS (3
2
- HEAPMEM_PAGE_SHIFT)
/* Each page is represented by a page map entry. */
#define HEAPMEM_PGMAP_BYTES sizeof(struct heapmem_pgentry)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment