Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 1999 13:38:15 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        emulation@FreeBSD.ORG, marcel@scc.nl
Subject:   Re:  Minor changes to USER_LDT related code
Message-ID:  <199909021738.NAA26555@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> Hi,
> 
> In order to implement the Linux modify_ldt syscall, I like to propose some
> changes to the current USER_LDT code. The changes are:
> 
> 1) Don't make i386_get_ldt and i386_set_ldt static so they can be
>    used by the linuxulator.
> 2) When ``option USER_LDT'' is not present, provide stubs for the
>    functions. These simply return ENOSYS.
> 3) Add the proper prototypes to i386/include/sysarch.h
> 
> For details see http://www.FreeBSD.org/~marcel/modify_ldt.diff
> Thanks,
> 
> -- 
> Marcel Moolenaar                                  mailto:marcel@scc.nl
> SCC Internetworking & Databases                     http://www.scc.nl/
> Amsterdam, The Netherlands                         tel: +31 20 4200655
> 
I am in favor of calling generic sysarch() interface instead, it should be
the only API outside world knows about.  And there will be no need to do
any of the three items you listed above.

-lq


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909021738.NAA26555>