OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [a29khif/] [alloc.s] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
; 
2
;(#)_alloc.s    1.4 90/10/14 21:57:19, AMD
3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4
; Copyright 1989, 1990 Advanced Micro Devices, Inc.
5
;
6
; This software is the property of Advanced Micro Devices, Inc  (AMD)  which
7
; specifically  grants the user the right to modify, use and distribute this
8
; software provided this notice is not removed or altered.  All other rights
9
; are reserved by AMD.
10
;
11
; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
12
; SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
13
; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
14
; USE OF THIS SOFTWARE.
15
;
16
; So that all may benefit from your experience, please report  any  problems
17
; or  suggestions about this software to the 29K Technical Support Center at
18
; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131  in  the  UK,  or
19
; 0031-11-1129 in Japan, toll free.  The direct dial number is 512-462-4118.
20
;
21
; Advanced Micro Devices, Inc.
22
; 29K Support Products
23
; Mail Stop 573
24
; 5900 E. Ben White Blvd.
25
; Austin, TX 78741
26
; 800-292-9263
27
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28
;
29
;       07/06/89 (JS) Replaced call to const tav,HIF_macro 
30
;                and deleted call to reterr macro as a NULL needs to be
31
;                returned on failure.
32
; _alloc.s
33
;       void *vp = _sysalloc( int size );
34
;
35
        .file   "_alloc.s"
36
        .include "sys/sysmac.h"
37
        .text
38
        .word   0x00030000              ; Debugger tag word
39
        .global __sysalloc
40
__sysalloc:
41
          const tav,HIF_alloc
42
 asneq V_SYSCALL,gr1,gr1
43
          jmpti         tav, lr0
44
          const        tpc, _errno
45
          consth       tpc, _errno
46
          store        0, 0, tav, tpc
47
          jmpi         lr0
48
          const         v0, 0                    ; return NULL on error.
49
 
50
;
51
;       int errret = _sysfree( void *addr, int size );
52
;
53
        .global __sysfree
54
__sysfree:
55
        const tav,HIF_free
56
 asneq V_SYSCALL,gr1,gr1
57
 jmpti tav,lr0
58
 const tpc,_errno
59
 consth tpc,_errno
60
 store 0,0,tav,tpc
61
 jmpi lr0
62
 constn v0,-1
63
 
64
        .end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.