diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-04-06 16:58:39 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-04-06 17:45:56 +0300 |
commit | e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13 (patch) | |
tree | 11127d96adabf22894f4848bdd9bbda67d67542e /cpudetect.c | |
parent | b93ed278362185ff980e0ce8f4ab3029f8fe395f (diff) | |
download | mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.bz2 mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.xz |
build: remove OS/2 support
Diffstat (limited to 'cpudetect.c')
-rw-r--r-- | cpudetect.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cpudetect.c b/cpudetect.c index 160ec955ea..fb93116c80 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -40,9 +40,6 @@ CpuCaps gCpuCaps; #include <signal.h> #elif defined(__MINGW32__) || defined(__CYGWIN__) #include <windows.h> -#elif defined(__OS2__) -#define INCL_DOS -#include <os2.h> #elif defined(__AMIGAOS4__) #include <proto/exec.h> #endif @@ -89,24 +86,6 @@ LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep) } #endif /* defined(__MINGW32__) || defined(__CYGWIN__) */ -#ifdef __OS2__ -ULONG _System os2_sig_handler_sse(PEXCEPTIONREPORTRECORD p1, - PEXCEPTIONREGISTRATIONRECORD p2, - PCONTEXTRECORD p3, - PVOID p4) -{ - if(p1->ExceptionNum == XCPT_ILLEGAL_INSTRUCTION){ - mp_msg(MSGT_CPUDETECT, MSGL_V, "SIGILL, "); - - p3->ctx_RegEip += 3; - gCpuCaps.hasSSE = 0; - - return XCPT_CONTINUE_EXECUTION; - } - return XCPT_CONTINUE_SEARCH; -} -#endif - /* If we're running on a processor that can do SSE, let's see if we * are allowed to or not. This will catch 2.4.0 or later kernels that * haven't been configured for a Pentium III but are running on one, @@ -166,15 +145,6 @@ static void check_os_katmai_support( void ) SetUnhandledExceptionFilter(exc_fil); mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" ); } -#elif defined(__OS2__) - EXCEPTIONREGISTRATIONRECORD RegRec = { 0, &os2_sig_handler_sse }; - if ( gCpuCaps.hasSSE ) { - mp_msg(MSGT_CPUDETECT,MSGL_V, "Testing OS support for SSE... " ); - DosSetExceptionHandler( &RegRec ); - __asm__ volatile ("xorps %xmm0, %xmm0"); - DosUnsetExceptionHandler( &RegRec ); - mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" ); - } #elif defined(__linux__) #if defined(_POSIX_SOURCE) struct sigaction saved_sigill; |