1 ######################################################################## 2 # Copyright(c) 2019 Arm Corporation All rights reserved. 3 # 4 # Redistribution and use in source and binary forms, with or without 5 # modification, are permitted provided that the following conditions 6 # are met: 7 # * Redistributions of source code must retain the above copyright 8 # notice, this list of conditions and the following disclaimer. 9 # * Redistributions in binary form must reproduce the above copyright 10 # notice, this list of conditions and the following disclaimer in 11 # the documentation and/or other materials provided with the 12 # distribution. 13 # * Neither the name of Arm Corporation nor the names of its 14 # contributors may be used to endorse or promote products derived 15 # from this software without specific prior written permission. 16 # 17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 ######################################################################### 29 30 .equ p4_low_b0, 0x0001 31 .equ p4_low_b1, 0xb000 32 .equ p4_low_b2, 0x01b1 33 .equ p4_low_b3, 0x01b0 34 .equ p4_high_b0, 0x0001 35 .equ p4_high_b1, 0x0000 36 .equ p4_high_b2, 0x0101 37 .equ p4_high_b3, 0xb100 38 39 .equ p1_low_b0, 0x0001 40 .equ p1_low_b1, 0x0000 41 .equ p1_low_b2, 0x0000 42 .equ p1_low_b3, 0x6b70 43 .equ p1_high_b0, 0x0001 44 .equ p1_high_b1, 0x0000 45 .equ p1_high_b2, 0x0000 46 .equ p1_high_b3, 0xf500 47 48 .equ p0_low_b0, 0x0001 49 .equ p0_low_b1, 0x0000 50 .equ p0_low_b2, 0x0000 51 .equ p0_low_b3, 0xf500 52 53 .equ br_low_b0, 0x0001 54 .equ br_low_b1, 0x0000 55 .equ br_low_b2, 0x0000 56 .equ br_low_b3, 0xb000 57 .equ br_high_b0, 0x0001 58 .equ br_high_b1, 0x0000 59 .equ br_high_b2, 0x0000 60 .equ br_high_b3, 0xb000 61 62 .text 63 .section .rodata 64 .align 4 65 .set .lanchor_crc_tab,. + 0 66 .type crc64_tab, %object 67 .size crc64_tab, 2048 68 69 crc64_tab: 70 .xword 0x0000000000000000, 0x01b0000000000000 71 .xword 0x0360000000000000, 0x02d0000000000000 72 .xword 0x06c0000000000000, 0x0770000000000000 73 .xword 0x05a0000000000000, 0x0410000000000000 74 .xword 0x0d80000000000000, 0x0c30000000000000 75 .xword 0x0ee0000000000000, 0x0f50000000000000 76 .xword 0x0b40000000000000, 0x0af0000000000000 77 .xword 0x0820000000000000, 0x0990000000000000 78 .xword 0x1b00000000000000, 0x1ab0000000000000 79 .xword 0x1860000000000000, 0x19d0000000000000 80 .xword 0x1dc0000000000000, 0x1c70000000000000 81 .xword 0x1ea0000000000000, 0x1f10000000000000 82 .xword 0x1680000000000000, 0x1730000000000000 83 .xword 0x15e0000000000000, 0x1450000000000000 84 .xword 0x1040000000000000, 0x11f0000000000000 85 .xword 0x1320000000000000, 0x1290000000000000 86 .xword 0x3600000000000000, 0x37b0000000000000 87 .xword 0x3560000000000000, 0x34d0000000000000 88 .xword 0x30c0000000000000, 0x3170000000000000 89 .xword 0x33a0000000000000, 0x3210000000000000 90 .xword 0x3b80000000000000, 0x3a30000000000000 91 .xword 0x38e0000000000000, 0x3950000000000000 92 .xword 0x3d40000000000000, 0x3cf0000000000000 93 .xword 0x3e20000000000000, 0x3f90000000000000 94 .xword 0x2d00000000000000, 0x2cb0000000000000 95 .xword 0x2e60000000000000, 0x2fd0000000000000 96 .xword 0x2bc0000000000000, 0x2a70000000000000 97 .xword 0x28a0000000000000, 0x2910000000000000 98 .xword 0x2080000000000000, 0x2130000000000000 99 .xword 0x23e0000000000000, 0x2250000000000000 100 .xword 0x2640000000000000, 0x27f0000000000000 101 .xword 0x2520000000000000, 0x2490000000000000 102 .xword 0x6c00000000000000, 0x6db0000000000000 103 .xword 0x6f60000000000000, 0x6ed0000000000000 104 .xword 0x6ac0000000000000, 0x6b70000000000000 105 .xword 0x69a0000000000000, 0x6810000000000000 106 .xword 0x6180000000000000, 0x6030000000000000 107 .xword 0x62e0000000000000, 0x6350000000000000 108 .xword 0x6740000000000000, 0x66f0000000000000 109 .xword 0x6420000000000000, 0x6590000000000000 110 .xword 0x7700000000000000, 0x76b0000000000000 111 .xword 0x7460000000000000, 0x75d0000000000000 112 .xword 0x71c0000000000000, 0x7070000000000000 113 .xword 0x72a0000000000000, 0x7310000000000000 114 .xword 0x7a80000000000000, 0x7b30000000000000 115 .xword 0x79e0000000000000, 0x7850000000000000 116 .xword 0x7c40000000000000, 0x7df0000000000000 117 .xword 0x7f20000000000000, 0x7e90000000000000 118 .xword 0x5a00000000000000, 0x5bb0000000000000 119 .xword 0x5960000000000000, 0x58d0000000000000 120 .xword 0x5cc0000000000000, 0x5d70000000000000 121 .xword 0x5fa0000000000000, 0x5e10000000000000 122 .xword 0x5780000000000000, 0x5630000000000000 123 .xword 0x54e0000000000000, 0x5550000000000000 124 .xword 0x5140000000000000, 0x50f0000000000000 125 .xword 0x5220000000000000, 0x5390000000000000 126 .xword 0x4100000000000000, 0x40b0000000000000 127 .xword 0x4260000000000000, 0x43d0000000000000 128 .xword 0x47c0000000000000, 0x4670000000000000 129 .xword 0x44a0000000000000, 0x4510000000000000 130 .xword 0x4c80000000000000, 0x4d30000000000000 131 .xword 0x4fe0000000000000, 0x4e50000000000000 132 .xword 0x4a40000000000000, 0x4bf0000000000000 133 .xword 0x4920000000000000, 0x4890000000000000 134 .xword 0xd800000000000000, 0xd9b0000000000000 135 .xword 0xdb60000000000000, 0xdad0000000000000 136 .xword 0xdec0000000000000, 0xdf70000000000000 137 .xword 0xdda0000000000000, 0xdc10000000000000 138 .xword 0xd580000000000000, 0xd430000000000000 139 .xword 0xd6e0000000000000, 0xd750000000000000 140 .xword 0xd340000000000000, 0xd2f0000000000000 141 .xword 0xd020000000000000, 0xd190000000000000 142 .xword 0xc300000000000000, 0xc2b0000000000000 143 .xword 0xc060000000000000, 0xc1d0000000000000 144 .xword 0xc5c0000000000000, 0xc470000000000000 145 .xword 0xc6a0000000000000, 0xc710000000000000 146 .xword 0xce80000000000000, 0xcf30000000000000 147 .xword 0xcde0000000000000, 0xcc50000000000000 148 .xword 0xc840000000000000, 0xc9f0000000000000 149 .xword 0xcb20000000000000, 0xca90000000000000 150 .xword 0xee00000000000000, 0xefb0000000000000 151 .xword 0xed60000000000000, 0xecd0000000000000 152 .xword 0xe8c0000000000000, 0xe970000000000000 153 .xword 0xeba0000000000000, 0xea10000000000000 154 .xword 0xe380000000000000, 0xe230000000000000 155 .xword 0xe0e0000000000000, 0xe150000000000000 156 .xword 0xe540000000000000, 0xe4f0000000000000 157 .xword 0xe620000000000000, 0xe790000000000000 158 .xword 0xf500000000000000, 0xf4b0000000000000 159 .xword 0xf660000000000000, 0xf7d0000000000000 160 .xword 0xf3c0000000000000, 0xf270000000000000 161 .xword 0xf0a0000000000000, 0xf110000000000000 162 .xword 0xf880000000000000, 0xf930000000000000 163 .xword 0xfbe0000000000000, 0xfa50000000000000 164 .xword 0xfe40000000000000, 0xfff0000000000000 165 .xword 0xfd20000000000000, 0xfc90000000000000 166 .xword 0xb400000000000000, 0xb5b0000000000000 167 .xword 0xb760000000000000, 0xb6d0000000000000 168 .xword 0xb2c0000000000000, 0xb370000000000000 169 .xword 0xb1a0000000000000, 0xb010000000000000 170 .xword 0xb980000000000000, 0xb830000000000000 171 .xword 0xbae0000000000000, 0xbb50000000000000 172 .xword 0xbf40000000000000, 0xbef0000000000000 173 .xword 0xbc20000000000000, 0xbd90000000000000 174 .xword 0xaf00000000000000, 0xaeb0000000000000 175 .xword 0xac60000000000000, 0xadd0000000000000 176 .xword 0xa9c0000000000000, 0xa870000000000000 177 .xword 0xaaa0000000000000, 0xab10000000000000 178 .xword 0xa280000000000000, 0xa330000000000000 179 .xword 0xa1e0000000000000, 0xa050000000000000 180 .xword 0xa440000000000000, 0xa5f0000000000000 181 .xword 0xa720000000000000, 0xa690000000000000 182 .xword 0x8200000000000000, 0x83b0000000000000 183 .xword 0x8160000000000000, 0x80d0000000000000 184 .xword 0x84c0000000000000, 0x8570000000000000 185 .xword 0x87a0000000000000, 0x8610000000000000 186 .xword 0x8f80000000000000, 0x8e30000000000000 187 .xword 0x8ce0000000000000, 0x8d50000000000000 188 .xword 0x8940000000000000, 0x88f0000000000000 189 .xword 0x8a20000000000000, 0x8b90000000000000 190 .xword 0x9900000000000000, 0x98b0000000000000 191 .xword 0x9a60000000000000, 0x9bd0000000000000 192 .xword 0x9fc0000000000000, 0x9e70000000000000 193 .xword 0x9ca0000000000000, 0x9d10000000000000 194 .xword 0x9480000000000000, 0x9530000000000000 195 .xword 0x97e0000000000000, 0x9650000000000000 196 .xword 0x9240000000000000, 0x93f0000000000000 197 .xword 0x9120000000000000, 0x9090000000000000 198