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 <linux/config.h>
8 #include <asm/ptrace.h>
26 1: ldstub [%g1 + 4], %g7
58 4: call down_read_failed_biased
73 sethi %hi(0x01000000), %g2
77 1: ldstub [%g1 + 4], %g7
103 call down_write_failed
108 restore %l5, %g0, %g5
109 4: call down_write_failed_biased
114 restore %l5, %g0, %g5
129 1: ldstub [%g1 + 4], %g7
150 3: save %sp, -64, %sp
160 restore %l5, %g0, %g5
170 sethi %hi(0x01000000), %g2
174 1: ldstub [%g1 + 4], %g7
195 3: save %sp, -64, %sp
205 restore %l5, %g0, %g5