aboutsummaryrefslogtreecommitdiff
path: root/playground
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-01-05 22:01:51 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2016-01-05 22:01:51 +0100
commitef4a7bbe3a818e5166548d1ba5edee7713c66214 (patch)
treeb0ba8576af43c1a391f36c8b3ce12229d1399112 /playground
parentec96951943921b57ef9c1e9dacb63e34716fe5b7 (diff)
downloadstm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.gz
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.bz2
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.xz
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.zip
o Seemingly working Mutexes.
o Dropping the privileged/unprivileged split for now.
Diffstat (limited to 'playground')
-rw-r--r--playground/include/playground.h1
-rw-r--r--playground/src/init_high.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/playground/include/playground.h b/playground/include/playground.h
index 3ccfeeb..168c5c5 100644
--- a/playground/include/playground.h
+++ b/playground/include/playground.h
@@ -13,6 +13,7 @@ int main();
extern "C"
void Default_Handler();
+// TODO: replace with std::extent<>; http://en.cppreference.com/w/cpp/types/extent
template<typename T, size_t N>
static inline constexpr
size_t SizeOfArray(const T(&)[N]) {
diff --git a/playground/src/init_high.cpp b/playground/src/init_high.cpp
index b877b7d..85e7d41 100644
--- a/playground/src/init_high.cpp
+++ b/playground/src/init_high.cpp
@@ -18,6 +18,13 @@ extern constructor_t _init_array_start[], _init_array_end[];
}
extern "C"
+__attribute__((noreturn))
+void __cxa_pure_virtual() {
+ while (1) {
+ }
+}
+
+extern "C"
void *memset(void *dst, int i, size_t n) {
if (n) {
char *d = (char *) dst;