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:
Till Straumann
2008-07-10 22:03:27 +00:00
parent e1df032b95
commit dfe42ba59c
2 changed files with 9 additions and 2 deletions

View File

@@ -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,

View File

@@ -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;