From 112ff2609a77c71520b46b5dca1e60f92b2ab9ad Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Fri, 27 Feb 2015 14:14:59 +0100 Subject: [PATCH] hw_x86_64: Add Thread::_event implementation It is an exact copy of the ARM version. --- repos/base-hw/src/core/spec/x86_64/kernel/thread_base.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repos/base-hw/src/core/spec/x86_64/kernel/thread_base.cc b/repos/base-hw/src/core/spec/x86_64/kernel/thread_base.cc index fc8555daf..677a2b8d6 100644 --- a/repos/base-hw/src/core/spec/x86_64/kernel/thread_base.cc +++ b/repos/base-hw/src/core/spec/x86_64/kernel/thread_base.cc @@ -54,8 +54,10 @@ addr_t Thread::* Thread::_reg(addr_t const id) const Thread_event Thread::* Thread::_event(unsigned const id) const { - PDBG("not implemented"); - return nullptr; + static Thread_event Thread::* _events[] = { + /* [0] */ &Thread::_fault + }; + return id < sizeof(_events)/sizeof(_events[0]) ? _events[id] : 0; }