tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64: USER_LDT (and wine)



Le 06/02/2017 à 08:00, coypu%SDF.ORG@localhost a écrit :
On Sun, Feb 05, 2017 at 12:30:42PM +0100, Maxime Villard wrote:
I have written a patch [1] that adds support for USER_LDT on amd64.

Cool! I've given it a try (I don't know enough to review it).
I've built emulators/wine-devel in a 32bit chroot.

Running it outside as follows:
% env LD_LIBRARY_PATH=/emul/n32/usr/pkg/lib ktruss -i /emul/n32/usr/pkg/bin/winecfg
shows that it is dying with:
  8998      1 wine     netbsd32_sysarch(0x1, 0xfffffffffff2a698) Err#22 EINVAL

I imagine the MD syscall needs to be added to netbsd32 or something?


Yes, as I suspected.

I have added USER_LDT in netbsd32. You will have to apply this patch [1] (in
addition to the one from yesterday), and make sure you have my recent changes.

Note: I'm not committing this patch now because it is not completely right,
and a few other checks on %cs are needed. If Wine works, I'll add them
afterwards. Also, my resources are limited and I cannot exhaustively test my
changes right now; I will in a few days.

[1] http://m00nbsd.net/garbage/ldt/n32.diff


Home | Main Index | Thread Index | Old Index