From 230bfe1a7d46c85601e5e67497cc607e15d08990 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 22 Jan 2016 03:46:00 +0000 Subject: move sh __unmapself code from arch/sh/src to main src tree --- arch/sh/src/__unmapself.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 arch/sh/src/__unmapself.c (limited to 'arch/sh') diff --git a/arch/sh/src/__unmapself.c b/arch/sh/src/__unmapself.c deleted file mode 100644 index b804aeff..00000000 --- a/arch/sh/src/__unmapself.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "pthread_impl.h" - -void __unmapself_sh_mmu(void *, size_t); -void __unmapself_sh_nommu(void *, size_t); - -#if !defined(__SH3__) && !defined(__SH4__) -#define __unmapself __unmapself_sh_nommu -#include "dynlink.h" -#undef CRTJMP -#define CRTJMP(pc,sp) __asm__ __volatile__( \ - "mov.l @%0+,r0 ; mov.l @%0,r12 ; jmp @r0 ; mov %1,r15" \ - : : "r"(pc), "r"(sp) : "r0", "memory" ) -#include "../../../src/thread/__unmapself.c" -#undef __unmapself -extern __attribute__((__visibility__("hidden"))) unsigned __sh_nommu; -#else -#define __sh_nommu 0 -#endif - -void __unmapself(void *base, size_t size) -{ - if (__sh_nommu) __unmapself_sh_nommu(base, size); - else __unmapself_sh_mmu(base, size); -} -- cgit v1.2.1