delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/27/15:53:15

Date: Tue, 27 Sep 1994 10:12:18 +0500
From: hvb AT netrix DOT com
To: djgpp AT sun DOT soe DOT clarkson DOT edu, jorgec AT pluri DOT ucm DOT es
Subject: Re: Physical memory access

> 	unsigned char *mem;
> 
> 	mem = 0x00400000;  /* the first position on the board memory */
> 	*(mem) = 0x4F;     /* write a value on the memory */
>         
For the physical memory access you should offset the memory location
with 0xe0000000 (see DJPPP README doc.).

> 	When I compile the program, the compiler give me the error 
>                      "segment violation error "
> 	What's going on?
> 
I guess, what are you reporting here is a run time error rather than a
compile time error?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019