| delorie.com/archives/browse.cgi | search |
| Date: | Tue, 22 Jul 1997 08:00:19 -0700 (PDT) |
| Message-Id: | <199707221500.IAA26323@adit.ap.net> |
| Mime-Version: | 1.0 |
| To: | brown AT signal DOT dra DOT hmg DOT gb |
| From: | Nate Eldredge <eldredge AT ap DOT net> |
| Subject: | Re: DPMI Physical Address Mapping |
| Cc: | djgpp AT delorie DOT com |
You wrote:
>/* Map in the board's physical address */
>my_map->size = 0x01000000;
>my_map->address = 0x3d000000;
>
>if((linear = __dpmi_physical_address_mapping(my_map)) == -1)
Make that __dpmi_physical_address_mapping(&my_map). The function takes a
__dpmi_meminfo* argument.
> printf("Failed to map physical address\n");
I bet it'll work now.
Nate Eldredge
eldredge AT ap DOT net
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |