# 2.11BSD#431 - /usr/src/lib/libc/pdp/compat-2.9/fperr.s

##### Functions

    _fperr            X

       1: /*
       2:  * Copyright (c) 1987 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  */
       6:
       7: #ifdef SYSLIBC_SCCS
       8: _sccsid: <@(#)fperr.s	2.5 (Berkeley) 1/29/87\0>
       9:         .even
      10: #endif SYSLIBC_SCCS
      11:
      12: /*
      13:  * fperr(fpe)
      14:  *	struct fperr *fpe;
      15:  *
      16:  * Get floating point error status from user structure and pass back to
      17:  * caller.
      18:  */
      19: #include "SYS.h"
      20:
      21: ENTRY(fperr)
      22:         SYS(fperr)              / grab floating point exception registers
          /
          /   trap 155 -> [kernel] -> syscall() -> via sysent[] -> handler: fperr
          /
      23:         mov     r2,-(sp)
      24:         mov     4(sp), r2       /  and pass them back to the caller
      25:         mov     r0, (r2)+
      26:         mov     r1, (r2)
      27:         mov     (sp)+, r2
      28:         rts     pc

#### Defined functions

_fperr defined in line 21; never used
_sccsid defined in line 8; never used

Last modified: 1987-01-29 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: ?E00 |