fix REQ-43

This commit is contained in:
Tomoki Shirasawa
2016-03-25 12:57:31 +09:00
parent 4a0682bbc1
commit 31595b7409
7 changed files with 152 additions and 113 deletions

View File

@@ -28,6 +28,7 @@
#include <signal.h>
#include <process.h>
#include <cls.h>
#include <prctl.h>
#define LAPIC_ID 0x020
#define LAPIC_TIMER 0x320
@@ -1533,6 +1534,15 @@ ihk_mc_user_context_t *lookup_user_context(struct thread *thread)
return uctx;
} /* lookup_user_context() */
extern long do_arch_prctl(unsigned long code, unsigned long address);
void
ihk_mc_init_user_tlsbase(ihk_mc_user_context_t *ctx,
unsigned long tls_base_addr)
{
do_arch_prctl(ARCH_SET_FS, tls_base_addr);
}
/*@
@ assigns \nothing;
@*/