modified _VRAM storage class to volatile
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "cache.h"
|
||||
#include "sysinit.h"
|
||||
|
||||
extern unsigned long _VRAM;
|
||||
extern volatile long _VRAM;
|
||||
extern unsigned long BaS;
|
||||
extern int copy_end();
|
||||
|
||||
@@ -255,7 +255,7 @@ void init_pll(void)
|
||||
#define NOP() __asm__ __volatile__("nop\n\t" : : : "memory")
|
||||
|
||||
void init_video_ddr(void) {
|
||||
* (uint16_t *) 0xf0000400 = 0xb; /* set cke = 1, cs=1, config = 1 */
|
||||
* (volatile uint16_t *) 0xf0000400 = 0xb; /* set cke = 1, cs=1, config = 1 */
|
||||
NOP();
|
||||
|
||||
_VRAM = 0x00050400; /* IPALL */
|
||||
|
||||
Reference in New Issue
Block a user