wine: mapping memory problems



hi, all.

in wine project there are few problems on freebsd with windows 16-bits
programs.
when you'll run such program, wine will crashed with stack overflow.
in fact, on freebsd wine doesn't map 1st megabyte of virtual memory,
but it should.
see ./libs/wine/mmap.c ./dlls/winedos/dosmem.c ./libs/wine/ldt.c
in dosmem.c DOSMEM_system should has mapped address, but programs
crashes on memset:

static void DOSMEM_FillBiosSegments(void)
{
BYTE *pBiosSys = (BYTE*)DOSMEM_dosmem + 0xf0000;
BYTE *pBiosROMTable = pBiosSys+0xe6f5;
BIOSDATA *pBiosData = DOSVM_BiosData(); /* in this case *pBiosData
= (BIOSDATA *)(DOSMEM_sysmem + 0x400);*/
static const char bios_date[] = "13/01/99";

/* Clear all unused values */
memset( pBiosData, 0, sizeof(*pBiosData) ); /* !!crashes here!! */
/* ... */

have you any suggestions how to resolve this problem?

beforehand 10x for help.

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: IE in FreeBSD?
    ... If I write a wordprocessor for Linux or FreeBSD and try ... > Word under Wine? ... at least the function of certain windows programs. ...
    (freebsd-questions)
  • Re: High disk load +mount/atacontrol/NFS/SMBFS crashes the system
    ... different machines and FreeBSD versions: when the disk is ... crashes. ... NTFS filesystem (with kernel driver) crashed. ...
    (freebsd-hackers)
  • RE: IE in FreeBSD?
    ... My opinion on WINE is that it merely harms people who are writing ... If I write a wordprocessor for Linux or FreeBSD and try to ... Word under Wine? ...
    (freebsd-questions)
  • Re: Wine
    ... Wine is a difficult program to use, particularly on FreeBSD. ... Please note first that it is in the FreeBSD ports collection ... I have fiddled with the installation so much, though, that I'm not sure ...
    (freebsd-questions)
  • Re: [OT] Re: PHP IDE.
    ... > Someone with FreeBSD will be of better help (maybe FBSD or KDE newsgroups), ... There were couple of very specific crashes fixed from ... limited to FreeBSD and IIRC, ...
    (comp.lang.php)