From ef4a7bbe3a818e5166548d1ba5edee7713c66214 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 5 Jan 2016 22:01:51 +0100 Subject: o Seemingly working Mutexes. o Dropping the privileged/unprivileged split for now. --- playground/include/playground.h | 1 + playground/src/init_high.cpp | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'playground') 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 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 @@ -17,6 +17,13 @@ typedef void(*constructor_t)(); 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) { -- cgit v1.2.3