1 /* $Id: rwsem.S,v 1.5 2000/05/09 17:40:13 davem Exp $
2 * Assembly part of rw semaphores.
4 * Copyright (C) 1999 Jakub Jelinek (jakub@redhat.com)
7 #include <asm/ptrace.h>
25 1: ldstub [%g1 + 4], %g7
57 4: call down_read_failed_biased
72 sethi %hi(0x01000000), %g2
76 1: ldstub [%g1 + 4], %g7
102 call down_write_failed
107 restore %l5, %g0, %g5
108 4: call down_write_failed_biased
113 restore %l5, %g0, %g5
128 1: ldstub [%g1 + 4], %g7
149 3: save %sp, -64, %sp
159 restore %l5, %g0, %g5
169 sethi %hi(0x01000000), %g2
173 1: ldstub [%g1 + 4], %g7
194 3: save %sp, -64, %sp
204 restore %l5, %g0, %g5