Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127115
b: refs/heads/master
c: 26fe19f
h: refs/heads/master
i:
  127113: d009410
  127111: 9b936c0
v: v3
  • Loading branch information
Robin Getz authored and Bryan Wu committed Jan 7, 2009
1 parent bf9c54c commit fd12a59
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 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: 2377feb4ce1cd42b7c1d266f466d69597d9dac7f
refs/heads/master: 26fe19f76027b05c39faa9b728912631e91ec182
5 changes: 5 additions & 0 deletions trunk/arch/blackfin/include/asm/bfrom.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ __attribute__((__noreturn__))
static inline void bfrom_SoftReset(void *new_stack)
{
while (1)
/*
* We don't declare the SP as clobbered on purpose, since
* it confuses the heck out of the compiler, and this function
* never returns
*/
__asm__ __volatile__(
"sp = %[stack];"
"jump (%[bfrom_syscontrol]);"
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/blackfin/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
/*
* Force strict CPU ordering.
*/
#define nop() asm volatile ("nop;\n\t"::)
#define mb() asm volatile ("" : : :"memory")
#define rmb() asm volatile ("" : : :"memory")
#define wmb() asm volatile ("" : : :"memory")
#define nop() __asm__ __volatile__ ("nop;\n\t" : : )
#define mb() __asm__ __volatile__ ("" : : : "memory")
#define rmb() __asm__ __volatile__ ("" : : : "memory")
#define wmb() __asm__ __volatile__ ("" : : : "memory")
#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
#define read_barrier_depends() do { } while(0)

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/blackfin/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ __attribute_const__
static inline struct thread_info *current_thread_info(void)
{
struct thread_info *ti;
__asm__("%0 = sp;": "=&d"(ti):
__asm__("%0 = sp;" : "=da"(ti) :
);
return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1));
}
Expand Down

0 comments on commit fd12a59

Please sign in to comment.