Mail Archives: djgpp/1996/01/21/18:10:17
> I have everything working except my mouse code. This installs a callback
> routine with the int33 mouse driver, using _go32_dpmi_allocate_real_mode_ \
> callback_retf(); I am convinced that I have locked all the memory ... gormcb.c
> seems to be locking the wrong bits of memory...
A known bug, fixed in the current work in progress (which seems to be destined
to become beta 5). Beta 4 also doesn't lock the RMCB register structure (that
was also added in the updated code). Here is the patch:
*** ../src/libc/go32/gormcb.c Fri Nov 17 00:24:56 1995
--- gormcb.c Sun Jan 14 14:29:24 1996
***************
*** 92,96 ****
return 0x8015; \
} \
! if( _go32_dpmi_lock_data( wrapper, \
stack_length) ) return 0x8015; \
((long *)stack)[0] = STACK_WAS_MALLOCED; \
--- 92,96 ----
return 0x8015; \
} \
! if( _go32_dpmi_lock_data( stack, \
stack_length) ) return 0x8015; \
((long *)stack)[0] = STACK_WAS_MALLOCED; \
***************
*** 102,105 ****
--- 102,107 ----
MALLOC_STACK();
+ if( _go32_dpmi_lock_data(regs, sizeof(__dpmi_regs)))
+ return 0x8015;
*(short *)(wrapper+0x06) = __djgpp_ds_alias;
- Raw text -