1 /* una_asm.S: Kernel unaligned trap assembler helpers.
3 * Copyright (C) 1996,2005,2008 David S. Miller (davem@davemloft.net)
4 * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
7 #include <linux/errno.h>
15 /* int __do_int_store(unsigned long *dst_addr, int size,
16 * unsigned long *src_val)
22 * Return '0' on success, -EFAULT on failure.
44 10: stb %g2, [%o0 + 6]
46 11: stb %g7, [%o0 + 7]
50 13: stb %g7, [%o0 + 1]
51 14: stb %g2, [%o0 + 2]
53 15: stb %g1, [%o0 + 3]
56 17: stb %g1, [%o0 + 1]
60 .section __ex_table,#alloc
67 .word 10b, retl_efault
68 .word 11b, retl_efault
69 .word 12b, retl_efault
70 .word 13b, retl_efault
71 .word 14b, retl_efault
72 .word 15b, retl_efault
73 .word 16b, retl_efault
74 .word 17b, retl_efault
77 /* int do_int_load(unsigned long *dest_reg, int size,
78 * unsigned long *saddr, int is_signed)
85 * Return '0' on success, -EFAULT on failure.
94 5: ldub [%o2 + 1], %g2
103 6: ldub [%o2 + 1], %g2
105 7: ldub [%o2 + 2], %g7
107 8: ldub [%o2 + 3], %g3
115 10: ldub [%o2 + 1], %g2
117 11: ldub [%o2 + 2], %g7
119 12: ldub [%o2 + 3], %g3
124 13: ldub [%o2 + 4], %g1
126 14: ldub [%o2 + 5], %g2
128 15: ldub [%o2 + 6], %g7
130 16: ldub [%o2 + 7], %g3
139 .section __ex_table,#alloc
140 .word 4b, retl_efault
141 .word 5b, retl_efault
142 .word 6b, retl_efault
143 .word 7b, retl_efault
144 .word 8b, retl_efault
145 .word 9b, retl_efault
146 .word 10b, retl_efault
147 .word 11b, retl_efault
148 .word 12b, retl_efault
149 .word 13b, retl_efault
150 .word 14b, retl_efault
151 .word 15b, retl_efault
152 .word 16b, retl_efault