From 22f0253f33e5d0ca54b32cf712d8391dfe2b3363 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 5 Aug 2018 18:57:25 +0000 Subject: [PATCH] xlat: add fallback definitions to madvise_cmds * xlat/madvise_cmds.in: Regenerate using maint/gen_xlat_defs.sh script to provide fallback definitions. Co-Authored-by: Eugene Syromyatnikov --- xlat/madvise_cmds.in | 94 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 75 insertions(+), 19 deletions(-) diff --git a/xlat/madvise_cmds.in b/xlat/madvise_cmds.in index 415c02f3..c836e360 100644 --- a/xlat/madvise_cmds.in +++ b/xlat/madvise_cmds.in @@ -1,19 +1,75 @@ -MADV_NORMAL -MADV_RANDOM -MADV_SEQUENTIAL -MADV_WILLNEED -MADV_DONTNEED -MADV_FREE -MADV_REMOVE -MADV_DONTFORK -MADV_DOFORK -MADV_HWPOISON -MADV_SOFT_OFFLINE -MADV_MERGEABLE -MADV_UNMERGEABLE -MADV_HUGEPAGE -MADV_NOHUGEPAGE -MADV_DONTDUMP -MADV_DODUMP -MADV_WIPEONFORK -MADV_KEEPONFORK +/* Generated by maint/gen_xlat_defs.sh -f 'd' -p 'MADV_' -c 'asm-generic/mman-common.h' -a 'asm/mman.h' */ + +MADV_NORMAL 0 + +MADV_RANDOM 1 + +MADV_SEQUENTIAL 2 + +MADV_WILLNEED 3 + +#if defined __alpha__ +MADV_DONTNEED 6 +#else +MADV_DONTNEED 4 +#endif + +MADV_FREE 8 + +MADV_REMOVE 9 + +MADV_DONTFORK 10 + +MADV_DOFORK 11 + +#if defined __hppa__ +MADV_MERGEABLE 65 +#else +MADV_MERGEABLE 12 +#endif + +#if defined __hppa__ +MADV_UNMERGEABLE 66 +#else +MADV_UNMERGEABLE 13 +#endif + +#if defined __hppa__ +MADV_HUGEPAGE 67 +#else +MADV_HUGEPAGE 14 +#endif + +#if defined __hppa__ +MADV_NOHUGEPAGE 68 +#else +MADV_NOHUGEPAGE 15 +#endif + +#if defined __hppa__ +MADV_DONTDUMP 69 +#else +MADV_DONTDUMP 16 +#endif + +#if defined __hppa__ +MADV_DODUMP 70 +#else +MADV_DODUMP 17 +#endif + +#if defined __hppa__ +MADV_WIPEONFORK 71 +#else +MADV_WIPEONFORK 18 +#endif + +#if defined __hppa__ +MADV_KEEPONFORK 72 +#else +MADV_KEEPONFORK 19 +#endif + +MADV_HWPOISON 100 + +MADV_SOFT_OFFLINE 101