quark: Introduce Quark Secure Partition
Test partition designed to have a virtual address space as small as
possible in order to test the extension ARMv8.4-TTST. This Secure
Partition doesn't have print capabilities. The only service it provides
is one that returns a magic number to verify that it has been loaded.
Change-Id: I431f6c65f2926d486836d12ddfefe05e83b0c47f
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
diff --git a/spm/quark/quark.h b/spm/quark/quark.h
new file mode 100644
index 0000000..2b4fd39
--- /dev/null
+++ b/spm/quark/quark.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef QUARK_H
+#define QUARK_H
+
+#include <stdint.h>
+
+/* Linker symbols used to figure out the memory layout of Quark. */
+extern uintptr_t __TEXT_START__, __TEXT_END__;
+#define QUARK_TEXT_START ((uintptr_t)&__TEXT_START__)
+#define QUARK_TEXT_END ((uintptr_t)&__TEXT_END__)
+
+extern uintptr_t __RODATA_START__, __RODATA_END__;
+#define QUARK_RODATA_START ((uintptr_t)&__RODATA_START__)
+#define QUARK_RODATA_END ((uintptr_t)&__RODATA_END__)
+
+extern uintptr_t __DATA_START__, __DATA_END__;
+#define QUARK_DATA_START ((uintptr_t)&__DATA_START__)
+#define QUARK_DATA_END ((uintptr_t)&__DATA_END__)
+
+extern uintptr_t __BSS_START__, __BSS_END__;
+#define QUARK_BSS_START ((uintptr_t)&__BSS_START__)
+#define QUARK_BSS_END ((uintptr_t)&__BSS_END__)
+
+#endif /* QUARK_H */