hw_x86_64: Add Thread::_event implementation

It is an exact copy of the ARM version.
This commit is contained in:
Reto Buerki 2015-02-27 14:14:59 +01:00 committed by Christian Helmuth
parent 83a1b826a3
commit 112ff2609a
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}