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 /loader | |
parent | b93ed278362185ff980e0ce8f4ab3029f8fe395f (diff) | |
download | mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.bz2 mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.xz |
build: remove OS/2 support
Diffstat (limited to 'loader')
-rw-r--r-- | loader/ldt_keeper.c | 3 | ||||
-rw-r--r-- | loader/module.c | 20 |
2 files changed, 0 insertions, 23 deletions
diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 3f7933426a..a5ae1d6b9a 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -254,9 +254,6 @@ ldt_fs_t* Setup_LDT_Keeper(void) printf("Couldn't install fs segment, expect segfault\n"); } } -#elif defined(__OS2__) - /* convert flat addr to sel idx for LDT_SEL() */ - fs_ldt = (uintptr_t)fs_seg >> 16; #endif Setup_FS_Segment(); diff --git a/loader/module.c b/loader/module.c index aa921c52d6..44769b74da 100644 --- a/loader/module.c +++ b/loader/module.c @@ -715,29 +715,9 @@ static int dump_component(char* name, int type, void* orig, ComponentParameters #ifdef EMU_QTX_API -#ifdef __OS2__ -uint32_t _System DosQueryMem(void *, uint32_t *, uint32_t *); -#endif - static int is_invalid_ptr_handle(void *p) { -#ifdef __OS2__ - uint32_t cb = 1; - uint32_t fl; - - if(DosQueryMem(p, &cb, &fl)) - return 1; - - // Occasionally, ptr with 'EXEC' attr is passed. - // On OS/2, however, malloc() never sets 'EXEC' attr. - // So ptr with 'EXEC' attr is invalid. - if(fl & 0x04) - return 1; - - return 0; -#else return (uint32_t)p >= 0x60000000; -#endif } static uint32_t ret_array[4096]; |