| delorie.com/archives/browse.cgi | search |
| From: | "Charles Sandmann" <sandmann AT clio DOT rice DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: DPMI setup Function |
| Date: | Sun, 17 Jun 2001 23:51:49 |
| Organization: | Aspen Technology, Inc. |
| Lines: | 13 |
| Message-ID: | <3b2d4295.sandmann@clio.rice.edu> |
| References: | <9giat2$rak$1 AT news DOT online DOT de> |
| NNTP-Posting-Host: | dcloan.hou.aspentech.com |
| X-Trace: | selma.aspentech.com 992840406 26858 10.32.115.107 (18 Jun 2001 05:00:06 GMT) |
| X-Complaints-To: | postmaster AT aspentech DOT com |
| NNTP-Posting-Date: | 18 Jun 2001 05:00:06 GMT |
| X-NewsEditor: | ED-1.5.8 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> Enrico asked: How can I implement the following function? > int set_ldt_entry(int entry, unsigned long base, unsigned int limit, int > seg_32bit_flag, int contents, int read_only_flag, int limit_in_pages_flag) You should first look in include/dpmi.h - in particular the functions: __dpmi_set_descriptor (which does it all at once, and is faster, or) __dpmi_set_segment_base_address __dpmi_set_segment_limit __dpmi_set_descriptor_access_rights (3 different calls) You might look at the DJGPP source - in particular stub.asm does a lot of these type calls setting up DJGPP to run your image.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |