Make the page table volatile (it may change behind gcc's back) experimental_memory_mapper_v2

Fri, 12 Apr 2013 12:37:13 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Fri, 12 Apr 2013 12:37:13 +0100
branch
experimental_memory_mapper_v2
changeset 142
cfa30b1cd92f
parent 141
8460d432606f
child 143
0fa6f5a480a6

Make the page table volatile (it may change behind gcc's back)

src/state.h file | annotate | diff | revisions
     1.1 --- a/src/state.h	Fri Apr 12 12:36:28 2013 +0100
     1.2 +++ b/src/state.h	Fri Apr 12 12:37:13 2013 +0100
     1.3 @@ -40,7 +40,7 @@
     1.4  	uint8_t		vram[0x8000];
     1.5  
     1.6  	/// Map RAM
     1.7 -	uint8_t		map[0x800];
     1.8 +	volatile uint8_t		map[0x800];
     1.9  
    1.10  	//// Registers
    1.11  	uint16_t	genstat;			///< General Status Register