The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mtx/inb.s

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 #include "mem.h"
    2 
    3 #define BDNZ    BC      16,0,
    4 #define BDNE    BC      0,2,
    5 
    6 TEXT    inb(SB), $0
    7         OR      $IOMEM, R3
    8         MOVBZ   (R3), R3
    9         RETURN
   10 
   11 TEXT    insb(SB), $0
   12         MOVW    v+4(FP), R4
   13         MOVW    n+8(FP), R5
   14         MOVW    R5, CTR
   15         OR      $IOMEM, R3
   16         SUB     $1, R4
   17 insb1:
   18         MOVBZ   (R3), R7
   19         MOVBU   R7, 1(R4)
   20         BDNZ    insb1
   21         RETURN
   22 
   23 TEXT    outb(SB), $0
   24         MOVW    v+4(FP), R4
   25         OR      $IOMEM, R3
   26         EIEIO
   27         MOVB    R4, (R3)
   28         RETURN
   29 
   30 TEXT    outsb(SB), $0
   31         MOVW    v+4(FP), R4
   32         MOVW    n+8(FP), R5
   33         MOVW    R5, CTR
   34         OR      $IOMEM, R3
   35         SUB     $1, R4
   36 outsb1:
   37         EIEIO
   38         MOVBZU  1(R4), R7
   39         MOVB    R7, (R3)
   40         BDNZ    outsb1
   41         RETURN
   42 
   43 TEXT    ins(SB), $0
   44         OR      $IOMEM, R3
   45         EIEIO
   46         MOVHBR  (R3), R3
   47         RETURN
   48 
   49 TEXT    inss(SB), $0
   50         MOVW    v+4(FP), R4
   51         MOVW    n+8(FP), R5
   52         MOVW    R5, CTR
   53         OR      $IOMEM, R3
   54         SUB     $2, R4
   55 inss1:
   56         EIEIO
   57         MOVHZ   (R3), R7
   58         MOVHU   R7, 2(R4)
   59         BDNZ    inss1
   60         RETURN
   61 
   62 TEXT    outs(SB), $0
   63         MOVW    v+4(FP), R4
   64         OR      $IOMEM, R3
   65         EIEIO
   66         MOVHBR  R4, (R3)
   67         RETURN
   68 
   69 TEXT    outss(SB), $0
   70         MOVW    v+4(FP), R4
   71         MOVW    n+8(FP), R5
   72         MOVW    R5, CTR
   73         OR      $IOMEM, R3
   74         SUB     $2, R4
   75 outss1:
   76         EIEIO
   77         MOVHZU  2(R4), R7
   78         MOVH    R7, (R3)
   79         BDNZ    outss1
   80         RETURN
   81 
   82 TEXT    inl(SB), $0
   83         OR      $IOMEM, R3
   84         EIEIO
   85         MOVWBR  (R3), R3
   86         RETURN
   87 
   88 TEXT    insl(SB), $0
   89         MOVW    v+4(FP), R4
   90         MOVW    n+8(FP), R5
   91         MOVW    R5, CTR
   92         OR      $IOMEM, R3
   93         SUB     $4, R4
   94 insl1:
   95         EIEIO
   96         MOVW    (R3), R7
   97         MOVWU   R7, 4(R4)
   98         BDNZ    insl1
   99         RETURN
  100 
  101 TEXT    outl(SB), $0
  102         MOVW    v+4(FP), R4
  103         OR      $IOMEM, R3
  104         EIEIO
  105         MOVWBR  R4, (R3)
  106         RETURN
  107 
  108 TEXT    outsl(SB), $0
  109         MOVW    v+4(FP), R4
  110         MOVW    n+8(FP), R5
  111         MOVW    R5, CTR
  112         OR      $IOMEM, R3
  113         SUB     $4, R4
  114 outsl1:
  115         EIEIO
  116         MOVWU   4(R4), R7
  117         MOVW    R7, (R3)
  118         BDNZ    outsl1
  119         RETURN

Cache object: bea99022b7947b8bc84a8ea693ffcaba


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.