* Nicolas Pitre n...@fluxnic.net [101220 13:38]:
On Mon, 20 Dec 2010, Stephen Boyd wrote:
Without marking the asm __dcc_getstatus() volatile my compiler
decides it can cache the value of __ret in a register and then
check the value of it continually in hvc_dcc_put_chars() (I had
to
Hi!
diff --git a/drivers/char/hvc_dcc.c b/drivers/char/hvc_dcc.c
index 6470f63..155ec10 100644
--- a/drivers/char/hvc_dcc.c
+++ b/drivers/char/hvc_dcc.c
@@ -33,8 +33,7 @@
static inline u32 __dcc_getstatus(void)
{
u32 __ret;
-
- asm(mrc p14, 0, %0, c0, c1, 0 @ read
On Sun, Jan 02 2011, Pavel Machek wrote:
diff --git a/drivers/char/hvc_dcc.c b/drivers/char/hvc_dcc.c
index 6470f63..155ec10 100644
--- a/drivers/char/hvc_dcc.c
+++ b/drivers/char/hvc_dcc.c
@@ -33,8 +33,7 @@
static inline u32 __dcc_getstatus(void)
{
u32 __ret;
-
-
Without marking the asm __dcc_getstatus() volatile my compiler
decides it can cache the value of __ret in a register and then
check the value of it continually in hvc_dcc_put_chars() (I had
to replace get_wait/put_wait with 1 and fixup the branch
otherwise my disassembler barfed on
On Mon, 20 Dec 2010, Stephen Boyd wrote:
Without marking the asm __dcc_getstatus() volatile my compiler
decides it can cache the value of __ret in a register and then
check the value of it continually in hvc_dcc_put_chars() (I had
to replace get_wait/put_wait with 1 and fixup the branch
Hi,
On Mon, Dec 20, 2010 at 3:08 PM, Stephen Boyd sb...@codeaurora.org wrote:
Without marking the asm __dcc_getstatus() volatile my compiler
decides [...]
What compiler ? That might be a usefull information to know,
espectially 5 years from now when tracing code history. There has been
similar
On 12/20/2010 01:49 PM, Arnaud Lacombe wrote:
Hi,
On Mon, Dec 20, 2010 at 3:08 PM, Stephen Boyd sb...@codeaurora.org wrote:
Without marking the asm __dcc_getstatus() volatile my compiler
decides [...]
What compiler ? That might be a usefull information to know,
espectially 5 years from now
On Mon, 20 Dec 2010, Stephen Boyd wrote:
On 12/20/2010 01:49 PM, Arnaud Lacombe wrote:
Hi,
On Mon, Dec 20, 2010 at 3:08 PM, Stephen Boyd sb...@codeaurora.org wrote:
Without marking the asm __dcc_getstatus() volatile my compiler
decides [...]
What compiler ? That might be a usefull