Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44584
b: refs/heads/master
c: 47fd705
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Dec 13, 2006
1 parent 188c1fd commit 2b63f44
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02828845dda5ccf921ab2557c6ca17b6e7fc70e2
refs/heads/master: 47fd705287e9377acd2a4cee9aeeea02867d2e54
20 changes: 20 additions & 0 deletions trunk/include/asm-arm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,26 @@ static inline void set_copro_access(unsigned int val)
extern unsigned long cr_no_alignment; /* defined in entry-armv.S */
extern unsigned long cr_alignment; /* defined in entry-armv.S */

#ifndef CONFIG_SMP
static inline void adjust_cr(unsigned long mask, unsigned long set)
{
unsigned long flags, cr;

mask &= ~CR_A;

set &= mask;

local_irq_save(flags);

cr_no_alignment = (cr_no_alignment & ~mask) | set;
cr_alignment = (cr_alignment & ~mask) | set;

set_cr((get_cr() & ~mask) | set);

local_irq_restore(flags);
}
#endif

#define UDBG_UNDEFINED (1 << 0)
#define UDBG_SYSCALL (1 << 1)
#define UDBG_BADABORT (1 << 2)
Expand Down

0 comments on commit 2b63f44

Please sign in to comment.