mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Fix volatile
Corresponding to coreboot v1 svn r888.
This commit is contained in:
parent
eaab50bb32
commit
7ead885e1c
@ -69,15 +69,15 @@ static __inline__ int write_sector_29f040b(volatile char * bios, unsigned char *
|
|||||||
|
|
||||||
int probe_29f040b (struct flashchip * flash)
|
int probe_29f040b (struct flashchip * flash)
|
||||||
{
|
{
|
||||||
volatile char * bios = flash->virt_addr;
|
volatile unsigned char * bios = flash->virt_addr;
|
||||||
unsigned char id1, id2;
|
unsigned char id1, id2;
|
||||||
|
|
||||||
*(bios + 0x555) = 0xAA;
|
*(bios + 0x555) = 0xAA;
|
||||||
*(bios + 0x2AA) = 0x55;
|
*(bios + 0x2AA) = 0x55;
|
||||||
*(bios + 0x555) = 0x90;
|
*(bios + 0x555) = 0x90;
|
||||||
|
|
||||||
id1 = *(unsigned char *) bios;
|
id1 = * bios;
|
||||||
id2 = *(unsigned char *) (bios + 0x01);
|
id2 = * (bios + 0x01);
|
||||||
|
|
||||||
*bios = 0xF0;
|
*bios = 0xF0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user