summaryrefslogtreecommitdiff
path: root/src/arch/vmpa.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
commit8e275f286138db88140d1643d1008f130ba7f484 (patch)
treeeea120992ae5a9c2a341e3bee336620ecdc65a6f /src/arch/vmpa.h
parentfd0df8f884336fc69bd0938453f9712c166f08c8 (diff)
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/arch/vmpa.h')
-rw-r--r--src/arch/vmpa.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h
index d2cc39b..fc997e5 100644
--- a/src/arch/vmpa.h
+++ b/src/arch/vmpa.h
@@ -176,6 +176,9 @@ typedef struct _mrange_t
} mrange_t;
+#define UNUSED_MRANGE_PTR (mrange_t []) { { { 0 }, 0 } }
+
+
#define get_mrange_addr(r) &(r)->addr
#define get_mrange_length(r) (r)->length