Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190501
b: refs/heads/master
c: 26b9e54
h: refs/heads/master
i:
  190499: 9400a75
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Apr 30, 2010
1 parent 22623ac commit 000ebec
Show file tree
Hide file tree
Showing 2 changed files with 19 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: ce384d83d00ee457c3931d3fdb9fa2c38e345a3c
refs/heads/master: 26b9e547e90db6b8b409084a9d4501124ff492b3
18 changes: 18 additions & 0 deletions trunk/arch/mips/include/asm/uasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,24 @@ static inline void __cpuinit uasm_l##lb(struct uasm_label **lab, u32 *addr) \
#define uasm_i_ssnop(buf) uasm_i_sll(buf, 0, 0, 1)
#define uasm_i_ehb(buf) uasm_i_sll(buf, 0, 0, 3)

static inline void uasm_i_dsrl_safe(u32 **p, unsigned int a1,
unsigned int a2, unsigned int a3)
{
if (a3 < 32)
uasm_i_dsrl(p, a1, a2, a3);
else
uasm_i_dsrl32(p, a1, a2, a3 - 32);
}

static inline void uasm_i_dsll_safe(u32 **p, unsigned int a1,
unsigned int a2, unsigned int a3)
{
if (a3 < 32)
uasm_i_dsll(p, a1, a2, a3);
else
uasm_i_dsll32(p, a1, a2, a3 - 32);
}

/* Handle relocations. */
struct uasm_reloc {
u32 *addr;
Expand Down

0 comments on commit 000ebec

Please sign in to comment.