Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235517
b: refs/heads/master
c: 8e6d3fe
h: refs/heads/master
i:
  235515: c85d021
v: v3
  • Loading branch information
Stephen Boyd authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 0135693 commit c00803e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf73bd35a296b31dace098b9104b6b593ee0070f
refs/heads/master: 8e6d3fe1af38bea3f6c003f8737d2e3a02d00fa0
24 changes: 0 additions & 24 deletions trunk/drivers/tty/hvc/hvc_dcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ static inline u32 __dcc_getstatus(void)
}


#if defined(CONFIG_CPU_V7)
static inline char __dcc_getchar(void)
{
char __c;

asm volatile("get_wait: mrc p14, 0, pc, c0, c1, 0 \n\
bne get_wait \n\
mrc p14, 0, %0, c0, c5, 0 @ read comms data reg"
: "=r" (__c) : : "cc");

return __c;
}
#else
static inline char __dcc_getchar(void)
{
char __c;
Expand All @@ -62,24 +49,13 @@ static inline char __dcc_getchar(void)

return __c;
}
#endif

#if defined(CONFIG_CPU_V7)
static inline void __dcc_putchar(char c)
{
asm volatile("put_wait: mrc p14, 0, pc, c0, c1, 0 \n\
bcs put_wait \n\
mcr p14, 0, %0, c0, c5, 0 "
: : "r" (c) : "cc");
}
#else
static inline void __dcc_putchar(char c)
{
asm volatile("mcr p14, 0, %0, c0, c5, 0 @ write a char"
: /* no output register */
: "r" (c));
}
#endif

static int hvc_dcc_put_chars(uint32_t vt, const char *buf, int count)
{
Expand Down

0 comments on commit c00803e

Please sign in to comment.