Fix memory barrier in a debug function
[netbsd-mini2440.git] / lib / libc / pc532 / sys / ptrace.s
blobd04759c077e7164da63e903c3e998a134f6f34c6
1 /*
2 * Copyright (c) 1992 Helsinki University of Technology
3 * All Rights Reserved.
4 *
5 * Permission to use, copy, modify and distribute this software and its
6 * documentation is hereby granted, provided that both the copyright
7 * notice and this permission notice appear in all copies of the
8 * software, derivative works or modified versions, and any portions
9 * thereof, and that both notices appear in supporting documentation.
11 * HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
12 * ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
13 * LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14 * USE OF THIS SOFTWARE.
17 * HISTORY
18 * 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
19 * Created.
21 * $Id: ptrace.s,v 1.1 1993/09/17 18:43:49 phil Exp $
24 /*
25 * This is included for the NetBSD version!
28 #include <syscall.h>
29 #include "SYS.h"
31 .globl EX(errno)
32 .globl cerror
34 ENTRY(ptrace)
35 movqd 0, EX(errno)
36 movd SYS_ptrace, r0
37 SVC
38 bcs cerror
39 ret 0