From e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 6 Apr 2012 16:58:39 +0300 Subject: build: remove OS/2 support --- loader/ldt_keeper.c | 3 --- loader/module.c | 20 -------------------- 2 files changed, 23 deletions(-) (limited to 'loader') 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]; -- cgit v1.2.3