forked from Imagelibrary/rtems
2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* mpc6xx/mmu/pte121.c: use general "memory" clobber
rather than memory input operand in inline assembly
("m" doesn't do what the manual says; see discussion
on gcc mailing list around 2008/3/30)
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2008-07-10 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* mpc6xx/mmu/pte121.c: use general "memory" clobber
|
||||
rather than memory input operand in inline assembly
|
||||
("m" doesn't do what the manual says; see discussion
|
||||
on gcc mailing list around 2008/3/30)
|
||||
|
||||
2008-07-10 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* ChangeLog, mpc8xx/clock/clock.c, ppc403/clock/clock.c,
|
||||
|
||||
@@ -540,9 +540,9 @@ triv121PgTblMap (Triv121PgTbl pt,
|
||||
uint32_t flags;
|
||||
rtems_interrupt_disable (flags);
|
||||
/* order setting 'v' after writing everything else */
|
||||
asm volatile ("eieio"::"m"(*pte));
|
||||
asm volatile ("eieio":::"memory");
|
||||
pte->v = 1;
|
||||
asm volatile ("sync"::"m"(*pte));
|
||||
asm volatile ("sync":::"memory");
|
||||
rtems_interrupt_enable (flags);
|
||||
} else {
|
||||
pte->v = 1;
|
||||
|
||||
Reference in New Issue
Block a user