id
stringlengths
22
129
text
stringlengths
60
19.5k
arch
stringclasses
9 values
syntax
stringclasses
5 values
kind
stringclasses
4 values
repo
stringclasses
32 values
path
stringlengths
7
108
license
stringclasses
10 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
15 values
source_url
stringlengths
85
192
line_start
int64
1
5.48k
line_end
int64
4
5.5k
NetBSD/src:sys/arch/x68k/x68k/locore.s:24
.long 0x4e7b9003 | movc a1(=0),tc ; disable MMU jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get RESET vectors in ROM | (d0: ssp, a0: pc) moveml #0x0101,%a1@ | put them at 0x0000 (for Xellent30) movc %a1,%vbr | reset Vector Base Register ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
156c51b999fb090a08a5116ec1d4f1d416027993
github
kernel
https://github.com/NetBSD/src/blob/156c51b999fb090a08a5116ec1d4f1d416027993/sys/arch/x68k/x68k/locore.s
921
980
NetBSD/src:sys/arch/x68k/x68k/locore.s:25
#ifdef DEBUG ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 #endif /* interrupt counters */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) ....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
156c51b999fb090a08a5116ec1d4f1d416027993
github
kernel
https://github.com/NetBSD/src/blob/156c51b999fb090a08a5116ec1d4f1d416027993/sys/arch/x68k/x68k/locore.s
961
988
NetBSD/src:sys/arch/x68k/x68k/locore.s:5
moveq #0,%d0 | now turn it back off movec %d0,%cacr | before we access any data .word 0xf4d8 | cinva bc - invalidate caches XXX bset #30,%d0 | data cache no allocate mode bit movc %d0,%cacr | only exists on 68060 movc %cacr,%d0 | read it back tstl %d0 | zero? jeq Lis68040 | yes, we have 68040 RE...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
161
220
NetBSD/src:sys/arch/x68k/x68k/locore.s:6
jra Lstart2 1: #endif #if defined(M68040) cmpl #CPU_68040,%a0@ | 68040? jne 1f movl #_C_LABEL(buserr40),%a2@(8) movl #_C_LABEL(addrerr4060),%a2@(12) jra Lstart2 1: #endif movl #_C_LABEL(busaddrerr2030),%a2@(8) movl #_C_LABEL(busaddrerr2030),%a2@(12) Lstart2: /* initialize source/destination control registers f...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
201
260
NetBSD/src:sys/arch/x68k/x68k/locore.s:7
jbsr %a0@ | to probe all memory regions addl #PAGE_SIZE-1,%d5 andl #PG_FRAME,%d5 | round to a page movl %d5,%a4 addl %a5,%a4 | convert to PA pea %a5@ | firstpa pea %a4@ | nextpa RELOC(pmap_bootstrap,%a0) jbsr %a0@ | pmap_bootstrap(firstpa, nextpa) addql #8,%sp /* * Prepare to enable MMU. * Since...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
241
300
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
movw %a0@,%d0 movw %d0,%d1 notw %d1 movw %d1,%a1@ movw %d0,%a0@ cmpw %a1@,%d1 | JUPITER-X? jne Ljupiterdone | no, skip movl #0x0100a240,%d0 | to access system register .long 0x4e7b0006 | movc %d0,%dtt0 movb #0x01,0x01800003 | set "SUPER" bit Ljupiterdone: #endif /* JUPITER */ moveq #0,%d0 | ensure TT re...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
pflusha #if PGSHIFT == 13 movl #0x82d08b00,%sp@- | value to load TC with #else movl #0x82c0aa00,%sp@- | value to load TC with #endif pmove %sp@,%tc | load it /* * Should be running mapped from this point on */ Lenab1: /* set vector base in virtual address */ movl #_C_LABEL(vectab),%d0 | set Vector Base Register...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
movc %d0,%cacr | clear cache(s) jra Lenab3 Ltbia040: .word 0xf518 | pflusha Lenab3: /* final setup for C code */ movl %d7,_C_LABEL(boothowto) | save reboot flags movl %d6,_C_LABEL(bootdev) | and boot device jbsr _C_LABEL(x68k_init) | additional pre-main initialization /* * Create a fake exception frame so t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
cmpl #0,%d0 | did kgdb handle it? jne Lbrkpt3 | yes, done #endif #ifdef DDB | Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #if 0 /* not needed on hp300 */ cmpl #0,%d0 | did ddb handle it? jne Lbrkpt3...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
INTERRUPT_SAVEREG CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG rte | XXX mfpcure (x680x0 hardware bug) ENTRY_NOPROFILE(kbdtimer) rte ENTRY_NOPROFILE(intiotrap) addql #1,_C_LABEL(idepth) INTERRUPT_SAVEREG pea %sp@(16-(FR_HW)) | XXX jbsr _C_LABEL(intio_intr) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) IN...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(idepth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts lea %sp@(16),%a1 | a1 = &clockframe movl %a1,%sp@- jbsr _C_LABEL(hardclock) | hardclock(&frame) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) | chalk up another...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
681
740
NetBSD/src:sys/arch/x68k/x68k/locore.s:19
* (profiling, scheduling) and software interrupts (network, softclock). * We check for ASTs first, just like the VAX. To avoid excess overhead * the T_ASTFLT handling code will also check for software interrupts so we * do not have to do it here. After identifying that we need an AST we * drop the IPL to allow de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
721
780
NetBSD/src:sys/arch/x68k/x68k/locore.s:20
addql #8,%a1 | source pointer movl %a1,%a0 | source addw %d0,%a0 | + hole size = dest pointer movl %a1@-,%a0@- | copy movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP rte | and do real RTE /* * Use common m68k si...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
761
820
NetBSD/src:sys/arch/x68k/x68k/locore.s:21
movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync moveq #0,%d0 | indicat...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/locore.s
801
860
NetBSD/src:sys/arch/x68k/x68k/vectors.s:1
| $NetBSD: vectors.s,v 1.20 2026/03/21 20:14:58 thorpej Exp $ | Copyright (c) 1988 University of Utah | Copyright (c) 1990, 1993 | The Regents of the University of California. All rights reserved. | | Redistribution and use in source and binary forms, with or without | modification, are permitted provided that the fo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/vectors.s
1
60
NetBSD/src:sys/arch/x68k/x68k/vectors.s:2
VECTOR(zerodiv) /* 5: zero divide */ VECTOR(chkinst) /* 6: CHK instruction */ VECTOR(trapvinst) /* 7: TRAPV instruction */ VECTOR(privinst) /* 8: privilege violation */ VECTOR(trace) /* 9: trace */ VECTOR(illinst) /* 10: line 1010 emulator */ VECTOR(fpfline) /* 11: line 1111 emulator */ VECTOR(badtrap) /* ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/vectors.s
41
100
NetBSD/src:sys/arch/x68k/x68k/vectors.s:3
VECTOR(illinst) /* 37: TRAP instruction vector */ VECTOR(illinst) /* 38: TRAP instruction vector */ VECTOR(illinst) /* 39: TRAP instruction vector */ VECTOR(illinst) /* 40: TRAP instruction vector */ VECTOR(illinst) /* 41: TRAP instruction vector */ VECTOR(illinst) /* 42: TRAP instruction vector */ VECTOR(i...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/vectors.s
81
140
NetBSD/src:sys/arch/x68k/x68k/vectors.s:4
VECTOR(intiotrap) /* 76: MFP MPSC receive buffer full */ VECTOR(intiotrap) /* 77: MFP timer-A */ VECTOR(intiotrap) /* 78: MFP CRTC raster */ VECTOR(intiotrap) /* 79: MFP H-SYNC */ VECTOR(intiotrap) /* 80: unassigned, reserved */ VECTOR(intiotrap) /* 81: unassigned, reserved */ VECTOR(intiotrap) /* 82: unassigned,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/vectors.s
121
180
NetBSD/src:sys/arch/x68k/x68k/vectors.s:5
VECTOR(intiotrap) /* 116: unassigned, reserved */ VECTOR(intiotrap) /* 117: unassigned, reserved */ VECTOR(intiotrap) /* 118: unassigned, reserved */ VECTOR(intiotrap) /* 119: unassigned, reserved */ VECTOR(intiotrap) /* 129: unassigned, reserved */ VECTOR(intiotrap) /* 121: unassigned, reserved */ VECTOR(intiotr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/vectors.s
161
206
NetBSD/src:sys/arch/x68k/x68k/vectors.s:1
| $NetBSD: vectors.s,v 1.19 2024/01/07 07:58:35 isaki Exp $ | Copyright (c) 1988 University of Utah | Copyright (c) 1990, 1993 | The Regents of the University of California. All rights reserved. | | Redistribution and use in source and binary forms, with or without | modification, are permitted provided that the foll...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
1
60
NetBSD/src:sys/arch/x68k/x68k/vectors.s:2
VECTOR(zerodiv) /* 5: zero divide */ VECTOR(chkinst) /* 6: CHK instruction */ VECTOR(trapvinst) /* 7: TRAPV instruction */ VECTOR(privinst) /* 8: privilege violation */ VECTOR(trace) /* 9: trace */ VECTOR(illinst) /* 10: line 1010 emulator */ VECTOR(fpfline) /* 11: line 1111 emulator */ VECTOR(badtrap) /* ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
41
100
NetBSD/src:sys/arch/x68k/x68k/vectors.s:3
VECTOR(illinst) /* 37: TRAP instruction vector */ VECTOR(illinst) /* 38: TRAP instruction vector */ VECTOR(illinst) /* 39: TRAP instruction vector */ VECTOR(illinst) /* 40: TRAP instruction vector */ VECTOR(illinst) /* 41: TRAP instruction vector */ VECTOR(illinst) /* 42: TRAP instruction vector */ VECTOR(i...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
81
140
NetBSD/src:sys/arch/x68k/x68k/vectors.s:4
VECTOR(intiotrap) /* 66: MFP GPIP2 front power switch */ VECTOR(intiotrap) /* 67: MFP GPIP3 FM sound generator */ VECTOR(intiotrap) /* 68: MFP timer-D */ VECTOR(timertrap) /* 69: MFP timer-C */ VECTOR(intiotrap) /* 70: MFP GPIP4 VBL */ VECTOR(intiotrap) /* 71: MFP GPIP5 unassigned */ VECTOR(kbdtimer) /* 72: MFP t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
121
180
NetBSD/src:sys/arch/x68k/x68k/vectors.s:5
VECTOR(intiotrap) /* 106: ADPCM DMA */ VECTOR(intiotrap) /* 107: ADPCM DMA */ VECTOR(intiotrap) /* 108: internal SPC */ VECTOR(intiotrap) /* 109: unassigned, reserved */ VECTOR(intiotrap) /* 110: unassigned, reserved */ VECTOR(intiotrap) /* 111: unassigned, reserved */ VECTOR(intiotrap) /* 112: Z8530 SCC (onboard...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
161
216
NetBSD/src:sys/arch/x68k/x68k/vectors.s:6
VECTOR(intiotrap) /* 240: PSX16550, port1 */ VECTOR(intiotrap) /* 241: PSX16550, port2 */ VECTOR(intiotrap) /* 242: unassigned, reserved */ VECTOR(intiotrap) /* 243: unassigned, reserved */ VECTOR(intiotrap) /* 244: unassigned, reserved */ VECTOR(intiotrap) /* 245: unassigned, reserved */ VECTOR(intiotrap) /* 246...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
6b664a713479c31d4f17b38b42182a5d5fa21802
github
kernel
https://github.com/NetBSD/src/blob/6b664a713479c31d4f17b38b42182a5d5fa21802/sys/arch/x68k/x68k/vectors.s
201
216
NetBSD/src:sys/arch/x68k/x68k/vectors.s:1
| $NetBSD: vectors.s,v 1.18 2014/03/14 20:24:24 tsutsui Exp $ | Copyright (c) 1988 University of Utah | Copyright (c) 1990, 1993 | The Regents of the University of California. All rights reserved. | | Redistribution and use in source and binary forms, with or without | modification, are permitted provided that the fo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/vectors.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/x68k/vectors.s
1
60
NetBSD/src:sys/arch/x86/acpi/Makefile.wakecode.inc:1
# $NetBSD: Makefile.wakecode.inc,v 1.9 2014/01/15 22:25:23 joerg Exp $ # FreeBSD: src/sys/i386/acpica/Makefile,v 1.3 2002/05/01 21:54:07 peter Exp ACPI_WAKECODE_S= ${S}/arch/${MACHINE}/acpi/acpi_wakecode.S ACPI_GENWAKECODE= ${S}/arch/x86/acpi/genwakecode.sh ACPI_GENCMD= AWK=${TOOL_AWK:Q} \ HEXDUMP=${TOOL_HEXDUMP:Q...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x86/acpi/Makefile.wakecode.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x86/acpi/Makefile.wakecode.inc
1
23
NetBSD/src:sys/arch/xen/conf/Makefile.arch.inc:1
# $NetBSD: Makefile.arch.inc,v 1.3 2007/11/22 16:16:46 bouyer Exp $ .if defined(MACHINE) && ${MACHINE} != "xen" XEN_BUILD?= ${MACHINE} .else .if ${MACHINE_ARCH} == "x86_64" XEN_BUILD?= amd64 .else XEN_BUILD?= ${MACHINE_ARCH} .endif .endif .if ${XEN_BUILD} == "i386" XEN_MACHINE_ARCHS= i386 x86 xen .elif ${XEN_BUILD} =...
unknown
gas-like
handwritten
NetBSD/src
sys/arch/xen/conf/Makefile.arch.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/xen/conf/Makefile.arch.inc
1
19
NetBSD/src:sys/arch/zaurus/conf/Makefile.zaurus.inc:1
# $NetBSD: Makefile.zaurus.inc,v 1.12 2020/01/12 06:41:02 tsutsui Exp $ MACHINE_ARCH?= arm CPPFLAGS+= -D${MACHINE} SYSTEM_FIRST_OBJ= zaurus_start.o SYSTEM_FIRST_SFILE= ${THISARM}/zaurus/zaurus_start.S SYSTEM_LD_TAIL_EXTRA+=; \ echo "Checking kernel size..."; \ size=`wc -c "$@" | ${TOOL_AWK} '{ print $$1 }'`; \ ...
riscv
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/conf/Makefile.zaurus.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/conf/Makefile.zaurus.inc
1
33
NetBSD/src:sys/arch/zaurus/stand/Makefile.inc:1
# $NetBSD: Makefile.inc,v 1.10 2023/06/03 21:26:28 lukem Exp $ BINDIR= /usr/mdec KLINK_MACHINE= zaurus # Follow the suit of Makefile.kern.inc; needed for the lfs64 union # accessors -- they don't actually dereference the resulting pointer, # just use it for type-checking. CWARNFLAGS+= ${CC_WNO_ADDRESS_OF_PACKED_MEMB...
unknown
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/stand/Makefile.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/stand/Makefile.inc
1
9
NetBSD/src:sys/arch/zaurus/stand/zboot/unixsys.S:1
/* $NetBSD: unixsys.S,v 1.2 2011/06/20 12:39:21 nonaka Exp $ */ /* $OpenBSD: unixsys.S,v 1.6 2005/05/24 20:38:20 uwe Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/stand/zboot/unixsys.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/stand/zboot/unixsys.S
1
60
NetBSD/src:sys/arch/zaurus/stand/zboot/unixsys.S:2
1: cmn r0, #4096 movcc pc, lr rsb r0, r0, #0 ldr r1, .Lerrno /* XXX clobbers arg1 */ str r0, [r1] mvn r0, #0 mov pc, lr .Lerrno: .word errno /* XXX only works for up to four arguments. */ ENTRY(syscall) swi __NR_syscall b 1b ENTRY(uselect) str r4, [sp, #-4]! ldr r4, [sp, #4] swi __NR_select ldr r4, [sp...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/stand/zboot/unixsys.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/stand/zboot/unixsys.S
41
77
NetBSD/src:sys/arch/zaurus/zaurus/kloader_zaurus.S:2
sub pc, pc, #4 #define CPWAIT(tmp) \ mrc p15, 0, tmp, c2, c0, 0 /* arbitrary read of CP15 */ ;\ mov tmp, tmp /* wait for it to complete */ ;\ CPWAIT_BRANCH /* branch to next insn */ .text /* * void * kloader_zaurus_boot(struct kloader_bootinfo *kbi, * struct kloader_page_tag *tag)...
arm64
intel-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/kloader_zaurus.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/kloader_zaurus.S
41
100
NetBSD/src:sys/arch/zaurus/zaurus/kloader_zaurus.S:3
/* Load kernel image */ mov r4, r1 /* tag */ 1: mov r3, r4 cmp r3, #0 /* tag == NULL */ beq 3f bic r3, r3, #0xff000000 orr r3, r3, #0xa0000000 ldmia r3, {r4-r7} /* r4: next, r5: src, r6: dst, r7: sz */ bic r5, r5, #0xff000000 orr r5, r5, #0xa0000000 bic r6, r6, #0xff000000 orr r6, r6, #0xa0000000 add r8, r...
arm64
intel-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/kloader_zaurus.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/kloader_zaurus.S
81
140
NetBSD/src:sys/arch/zaurus/zaurus/kloader_zaurus.S:4
#ifdef PROGRESS .Lprogress: mov r0, #0x2e /*'.'*/ b .Lputchar .Lputchar: ldr r2, .Lffuart_txdata ldr r1, .Lffuart_txbusy 1: ldr r9, [r1] tst r9, #0x20 beq 1b str r0, [r2] mov pc, lr .Lhexprint: ldr r2, .Lffuart_txdata ldr r1, .Lffuart_txbusy mov r10, #32 1: sub r10, r10, #4 mov r11, r0, lsr r10 and r11,...
arm64
intel-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/kloader_zaurus.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/kloader_zaurus.S
121
177
NetBSD/src:sys/arch/zaurus/zaurus/kloader_zaurus.S:5
mov pc, lr .Lputcrlf: ldr r2, .Lffuart_txdata ldr r1, .Lffuart_txbusy b 3b .align 2 .Lffuart_txdata: .word 0x40100000 .Lffuart_txbusy: .word 0x40100014 .Lhextable: .asciz "0123456789abcdef" #endif
arm64
intel-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/kloader_zaurus.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/kloader_zaurus.S
161
177
NetBSD/src:sys/arch/zaurus/zaurus/zaurus_start.S:2
* copied from arm/arm/cpufunc_asm_xscale.S * XXX: better be in a common header file. */ #define CPWAIT_BRANCH \ sub pc, pc, #4 #define CPWAIT(tmp) \ mrc p15, 0, tmp, c2, c0, 0 /* arbitrary read of CP15 */ ;\ mov tmp, tmp /* wait for it to complete */ ;\ CPWAIT_BRANCH /* branch to next insn */ /...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/zaurus_start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/zaurus_start.S
41
100
NetBSD/src:sys/arch/zaurus/zaurus/zaurus_start.S:3
mcr p15, 0, r0, c8, c7, 0 /* Flush TLB */ /* Set the Domain Access register. Very important! */ mov r0, #((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT) mcr p15, 0, r0, c3, c0, 0 /* Enable MMU */ mrc p15, 0, r0, c1, c0, 0 orr r0, r0, #CPU_CONTROL_SYST_ENABLE orr r0, r0, #CPU_CONTROL_MMU_ENABLE mc...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/zaurus/zaurus/zaurus_start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/zaurus/zaurus/zaurus_start.S
81
117
NetBSD/src:sys/compat/linux/Makefile.inc:1
# $NetBSD: Makefile.inc,v 1.7 2017/01/16 17:37:29 christos Exp $ .if !defined(SUBDIR) SYSCALL_PREFIX=linux .include <bsd.syscall.mk> .endif
x86_64
gas-like
handwritten
NetBSD/src
sys/compat/linux/Makefile.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux/Makefile.inc
1
7
NetBSD/src:sys/compat/linux/arch/aarch64/linux_sigcode.S:1
/*- * Copyright (c) 2021 The NetBSD Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this...
arm64
gas-like
handwritten
NetBSD/src
sys/compat/linux/arch/aarch64/linux_sigcode.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux/arch/aarch64/linux_sigcode.S
1
42
NetBSD/src:sys/compat/linux/arch/m68k/linux_sig_machdep.S:1
/* $NetBSD: linux_sig_machdep.S,v 1.3 1999/11/11 01:27:59 thorpej Exp $ */ /* * Written by ITOH Yasufumi. * Public domain. */ #include <m68k/asm.h> #include <compat/linux/linux_syscall.h> /* * Signal "trampoline" code for Linux emulation. * The sigtramp for Linux/m68k is on the stack frame, and this is a dummy....
x86_64
gas-like
handwritten
NetBSD/src
sys/compat/linux/arch/m68k/linux_sig_machdep.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux/arch/m68k/linux_sig_machdep.S
1
20
NetBSD/src:sys/compat/linux32/Makefile.inc:1
# $NetBSD: Makefile.inc,v 1.4 2017/01/16 17:39:59 christos Exp $ .if !defined(SUBDIR) SYSCALL_PREFIX=linux32 .include <bsd.syscall.mk> .endif
x86_64
gas-like
handwritten
NetBSD/src
sys/compat/linux32/Makefile.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux32/Makefile.inc
1
7
NetBSD/src:sys/compat/linux32/arch/aarch64/linux32_sigcode.S:1
/* $NetBSD: linux32_sigcode.S,v 1.2 2024/02/07 04:20:28 msaitoh Exp $ */ /*- * Copyright (c) 2021 Ryo Shimizu * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of sour...
arm64
gas-like
handwritten
NetBSD/src
sys/compat/linux32/arch/aarch64/linux32_sigcode.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux32/arch/aarch64/linux32_sigcode.S
1
60
NetBSD/src:sys/compat/linux32/arch/aarch64/linux32_sigcode.S:2
.global _C_LABEL(linux32_sigcode) _C_LABEL(linux32_sigcode): /* mov r7, #LINUX32_SYS_sigreturn */ .word 0xe3a07000 + LINUX32_SYS_sigreturn .word 0xef000000 /* svc 0 */ /* NOTREACHED */ .word 0xe7f000f0 /* udf #0 */ .global _C_LABEL(linux32_rt_sigcode) _C_LABEL(linux32_rt_sigcode): /* mov r7, #LINUX32_SYS_rt_...
arm64
gas-like
handwritten
NetBSD/src
sys/compat/linux32/arch/aarch64/linux32_sigcode.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux32/arch/aarch64/linux32_sigcode.S
41
100
NetBSD/src:sys/compat/linux32/arch/aarch64/linux32_sigcode.S:3
.word 0x01a20f96 /* strexdeq r0, r6, [r2] */ .word 0xf57ff05f /* dmb sy */ .word 0xe8bd00f0 /* pop {r4, r5, r6, r7} */ .word 0xe12fff1e /* bx lr */ .align 5 /* * 0xffff0fa0 * void __kuser_memory_barrier(void); */ .__kuser_memory_barrier: .word 0xf57ff05f /* dmb sy */ .word...
arm64
gas-like
handwritten
NetBSD/src
sys/compat/linux32/arch/aarch64/linux32_sigcode.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/compat/linux32/arch/aarch64/linux32_sigcode.S
81
129
NetBSD/src:sys/compat/linux32/arch/aarch64/linux32_sigcode.S:1
/* $NetBSD: linux32_sigcode.S,v 1.1 2021/11/25 03:08:04 ryo Exp $ */ /*- * Copyright (c) 2021 Ryo Shimizu <ryo@nerv.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
arm64
gas-like
handwritten
NetBSD/src
sys/compat/linux32/arch/aarch64/linux32_sigcode.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/compat/linux32/arch/aarch64/linux32_sigcode.S
1
60
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:1
/* $NetBSD: aes_armv8_64.S,v 1.16 2025/11/27 05:04:34 andvar Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribu...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1
60
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:2
* four 4-byte lanes of a vector register with a single LD1R. The * access pattern is fixed, so indices into this table are never * secret. */ .section .rodata .p2align 2 .type rcon,@object rcon: .long 0x01 .long 0x02 .long 0x04 .long 0x08 .long 0x10 .long 0x20 .long 0x40 .long 0x80 .long 0x1b .long 0x3...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
41
100
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:3
* 3 into all the other words. */ .section .rodata .p2align 4 .type unshiftrows_3,@object unshiftrows_3: .byte 0x0c,0x09,0x06,0x03 .byte 0x0c,0x09,0x06,0x03 .byte 0x0c,0x09,0x06,0x03 .byte 0x0c,0x09,0x06,0x03 END(unshiftrows_3) /* * uint128_t unshiftrows_rotword_3 * * Table for TBL instruction to undo ShiftR...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
81
140
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:4
ld1 {v16.16b}, [x4] /* q16 := unshiftrows_rotword_3 table */ str q1, [x0], #0x10 /* store master key as first round key */ mov x2, #10 /* round count */ adrl x3, rcon /* round constant */ 1: /* * q0 = 0 * v1.4s = (prk[0], prk[1], prk[2], prk[3]) * x0 = pointer to round key to compute * x2 = round count ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
121
180
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:5
b.ne 1b ret END(aesarmv8_setenckey128) /* * aesarmv8_setenckey192(struct aesenc *enckey@x0, const uint8_t key[24] @x1) * * Expand a 24-byte AES-192 key into 12 round keys. * * Standard ABI calling convention. */ ENTRY(aesarmv8_setenckey192) ld1 {v1.16b}, [x1], #0x10 /* q1 := master key[0:128) */ ld1 {v2.8b},...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
161
220
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:6
ld1r {v4.4s}, [x3], #4 tbl v3.16b, {v3.16b}, v16.16b eor v3.16b, v3.16b, v4.16b /* * We need to compute: * * rk[0] := rklo[0] * rk[1] := rklo[1] * rk[2] := Rot(Sub(rklo[1])) ^ RCON ^ prk[0] * rk[3] := Rot(Sub(rklo[1])) ^ RCON ^ prk[0] ^ prk[1] * nrk[0] := Rot(Sub(rklo[1])) ^ RCON ^ prk[0] ^ prk[1] ^ p...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
201
260
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:7
/* v1.4s := (nrk[0], nrk[1], nrk[1], nrk[1]) */ dup v1.4s, v5.s[3] mov v1.s[0], v5.s[2] /* * v6.4s := (0, 0, rklo[0], rklo[1]) * v7.4s := (0, 0, 0, rklo[0]) */ ext v6.16b, v0.16b, v2.16b, #8 ext v7.16b, v0.16b, v2.16b, #4 /* v3.4s := (nrk[0], nrk[1], nrk[2], nrk[3]) */ eor v3.16b, v1.16b, v6.16b eor v3....
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
241
300
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:8
* nnrk[2] := Rot(Sub(nrk[3])) ^ RCON' ^ rk[2] ^ rk[3] ^ nrk[0] * nnrk[3] := Rot(Sub(nrk[3])) ^ RCON' ^ rk[2] ^ rk[3] ^ nrk[0] * ^ nrk[1] * * And, if there's any more afterward, in q2: * * nnnrklo[0] := Rot(Sub(nrk[3])) ^ RCON' ^ rk[2] ^ rk[3] ^ nrk[0] * ^ nrk[1] ^ nrk[2] * nnnrklo[1] := Rot(Sub(...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
281
340
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:9
/* * v4.4s := (nrk[2], nrk[3], xxx, xxx) * v5.4s := (0, nrk[2], xxx, xxx) */ ext v4.16b, v3.16b, v0.16b, #8 ext v5.16b, v0.16b, v4.16b, #12 /* v2.4s := (nnrk[3], nnrk[3], xxx, xxx) */ dup v2.4s, v1.s[3] /* * v2.4s := (nnnrklo[0] = nnrk[3] ^ nrk[2], * nnnrklo[1] = nnrk[3] ^ nrk[2] ^ nrk[3], * ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
321
380
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:10
/* store master key as first two round keys */ stp q1, q2, [x0], #0x20 mov x2, #14 /* round count */ adrl x3, rcon /* round constant */ 1: /* * q0 = 0 * v1.4s = (pprk[0], pprk[1], pprk[2], pprk[3]) * v2.4s = (prk[0], prk[1], prk[2], prk[3]) * x2 = round count * x3 = rcon pointer */ /* q3 := ShiftRows...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
361
420
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:11
/* q3 := ShiftRows(SubBytes(q1)) */ mov v3.16b, v1.16b aese v3.16b, v0.16b /* v3.4s[i] := SubBytes(rk[3]) */ tbl v3.16b, {v3.16b}, v17.16b /* * v5.4s := (0,prk[0],prk[1],prk[2]) * v6.4s := (0,0,prk[0],prk[1]) * v7.4s := (0,0,0,prk[0]) */ ext v5.16b, v0.16b, v2.16b, #12 ext v6.16b, v0.16b, v2.16b, #8 e...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
401
460
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:12
ldr q0, [x0, x2, lsl #4] /* load last round key */ b 2f _ALIGN_TEXT 1: aesimc v0.16b, v0.16b /* convert encryption to decryption */ 2: str q0, [x1], #0x10 /* store round key */ subs x2, x2, #1 /* count down round */ ldr q0, [x0, x2, lsl #4] /* load previous round key */ b.ne 1b /* repeat if there's more */ str q...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
441
500
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:13
mov fp, sp ld1 {v0.16b}, [x1] /* q0 := ctxt */ bl aesarmv8_dec1 /* q0 := ptxt; trash x0/x3/q16 */ st1 {v0.16b}, [x2] /* store ptxt */ ldp fp, lr, [sp], #16 /* pop stack frame */ ret END(aesarmv8_dec) /* * aesarmv8_cbc_enc(const struct aesenc *enckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
481
540
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:14
/* * aesarmv8_cbc_dec1(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, const uint8_t iv[16] @x4, * uint32_t nrounds@x5) * * Decrypt a contiguous sequence of blocks with AES-CBC. * * nbytes must be a positive integral multiple of 16. This routine * is not vecto...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
521
580
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:15
ret END(aesarmv8_cbc_dec1) /* * aesarmv8_cbc_dec8(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, const uint8_t iv[16] @x4, * uint32_t nrounds@x5) * * Decrypt a contiguous sequence of 8-block units with AES-CBC. * * nbytes must be a positive integral multiple o...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
561
620
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:16
mov v28.16b, v3.16b mov v27.16b, v2.16b mov v26.16b, v1.16b mov v25.16b, v0.16b mov x0, x9 /* x0 := enckey */ mov x3, x5 /* x3 := nrounds */ bl aesarmv8_dec8 /* q[i] := cv[i] ^ pt[i]; * trash x0/x3/q16 */ eor v7.16b, v7.16b, v31.16b /* q[i] := pt[i] */ eor v6.16b, v6.16b, v30.16b eor v5.16b, v5.16b,...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
601
660
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:17
ENTRY(aesarmv8_xts_enc1) stp fp, lr, [sp, #-16]! /* push stack frame */ mov fp, sp mov x9, x0 /* x9 := enckey */ mov x10, x3 /* x10 := nbytes */ ld1 {v31.16b}, [x4] /* q31 := tweak */ _ALIGN_TEXT 1: ld1 {v0.16b}, [x1], #0x10 /* q0 := ptxt */ mov x0, x9 /* x0 := enckey */ mov x3, x5 /* x3 := nrounds */ ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
641
700
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:18
1: mov v24.16b, v31.16b /* q24 := tweak[0] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v25.16b, v31.16b /* q25 := tweak[1] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v26.16b, v31.16b /* q26 := tweak[2] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v27.16b, v31.16b /* q2...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
681
740
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:19
b.ne 1b /* repeat if more block groups */ st1 {v31.16b}, [x4] /* update tweak */ ldp fp, lr, [sp], #16 /* pop stack frame */ ret END(aesarmv8_xts_enc8) /* * aesarmv8_xts_dec1(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, uint8_t tweak[16] @x4, * uint32_t nr...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
721
780
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:20
/* * aesarmv8_xts_dec8(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, uint8_t tweak[16] @x4, * uint32_t nrounds@x5) * * Decrypt a contiguous sequence of blocks with AES-XTS. * * nbytes must be a positive integral multiple of 128. * * Standard ABI calling conv...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
761
820
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:21
eor v5.16b, v5.16b, v29.16b eor v6.16b, v6.16b, v30.16b eor v7.16b, v7.16b, v31.16b mov x0, x9 /* x0 := deckey */ mov x3, x5 /* x3 := nrounds */ bl aesarmv8_dec8 /* decrypt q0-q7; trash x0/x3/q16 */ eor v0.16b, v0.16b, v24.16b /* q[i] := AES(...) ^ tweak[i] */ eor v1.16b, v1.16b, v25.16b eor v2.16b, v2.16b...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
801
860
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:22
*/ adrl x0, xtscarry cmlt v1.2d, v31.2d, #0 /* v1.2d[i] := -1 if v31.2d[i] < 0, else 0 */ ld1 {v0.16b}, [x0] /* q0 := xtscarry */ ext v1.16b, v1.16b, v1.16b, #8 /* swap halves of q1 */ shl v31.2d, v31.2d, #1 /* shift */ and v0.16b, v0.16b, v1.16b /* copy xtscarry according to mask */ eor v31.16b, v31.16b, v0.16...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
841
900
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:23
* Update CBC-MAC. * * nbytes must be a positive integral multiple of 16. * * Standard ABI calling convention. */ ENTRY(aesarmv8_cbcmac_update1) stp fp, lr, [sp, #-16]! /* push stack frame */ mov fp, sp ld1 {v0.16b}, [x3] /* q0 := initial authenticator */ mov x9, x0 /* x9 := enckey */ mov x5, x3 /* x5 := ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
881
940
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:24
adrl x11, ctr32_inc /* x11 := &ctr32_inc */ ld1 {v5.4s}, [x11] /* q5 := (0,0,0,1) (host-endian) */ mov x9, x0 /* x9 := enckey */ mov x10, x3 /* x10 := nbytes */ rev32 v2.16b, v1.16b /* q2 := ctr (host-endian) */ _ALIGN_TEXT 1: ld1 {v3.16b}, [x1], #0x10 /* q3 := plaintext block */ add v2.4s, v2.4s, v5.4s /*...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
921
980
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:25
ld1 {v5.4s}, [x11] /* q5 := (0,0,0,1) (host-endian) */ mov x9, x0 /* x9 := enckey */ mov x10, x3 /* x10 := nbytes */ rev32 v2.16b, v2.16b /* q2 := ctr (host-endian) */ /* Decrypt the first block. */ add v2.4s, v2.4s, v5.4s /* increment ctr (32-bit) */ mov x3, x5 /* x3 := nrounds */ rev32 v0.16b, v2.16b...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
961
1,020
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:26
bl aesarmv8_enc1 /* q0 := auth'; trash x0/x3/q16 */ mov v1.16b, v2.16b /* store updated auth/ctr */ st1 {v0.16b-v1.16b}, [x4] ldp fp, lr, [sp], #16 /* pop stack frame */ ret END(aesarmv8_ccm_dec1) .section .rodata .p2align 4 .type ctr32_inc,@object ctr32_inc: .int 0, 0, 0, 1 END(ctr32_inc) /* * aesarmv8_e...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,001
1,060
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:27
eor v0.16b, v0.16b, v16.16b ret END(aesarmv8_enc1) /* * aesarmv8_enc2(const struct aesenc *enckey@x0, * uint128_t block@q0, uint128_t block@q1, uint32_t nrounds@x3) * * Encrypt two AES blocks in q0 and q1. * * Internal ABI. Uses q16 as temporary. Destroys x0 and x3. */ .text _ALIGN_TEXT .type aesarmv8...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,041
1,100
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:28
* uint32_t nrounds@x3) * * Encrypt eight AES blocks in q0 through q7 in parallel. * * Internal ABI. Uses q16 as temporary. Destroys x0 and x3. */ .text _ALIGN_TEXT .type aesarmv8_enc8,@function aesarmv8_enc8: ldr q16, [x0], #0x10 /* load round key */ sub x3, x3, #1 _ALIGN_TEXT 1: /* q[i] := MixColumns(...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,081
1,140
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:29
aese v6.16b, v16.16b aese v7.16b, v16.16b ldr q16, [x0] /* load last round key */ /* q[i] := AddRoundKey_q16(q[i]) */ eor v0.16b, v0.16b, v16.16b eor v1.16b, v1.16b, v16.16b eor v2.16b, v2.16b, v16.16b eor v3.16b, v3.16b, v16.16b eor v4.16b, v4.16b, v16.16b eor v5.16b, v5.16b, v16.16b eor v6.16b, v6.16b, v16...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,121
1,180
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:30
/* q0 := AddRoundKey_q16(q0) */ eor v0.16b, v0.16b, v16.16b ret END(aesarmv8_dec1) /* * aesarmv8_dec8(const struct aesdec *deckey@x0, * uint128_t block0@q0, ..., uint128_t block7@q7, * uint32_t nrounds@x3) * * Decrypt eight AES blocks in q0 through q7 in parallel. * * Internal ABI. Uses q16 as tempor...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,161
1,220
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:31
subs x3, x3, #1 b.ne 1b /* q[i] := InSubBytes(InShiftRows(AddRoundKey_q16(q[i]))) */ aesd v0.16b, v16.16b aesd v1.16b, v16.16b aesd v2.16b, v16.16b aesd v3.16b, v16.16b aesd v4.16b, v16.16b aesd v5.16b, v16.16b aesd v6.16b, v16.16b aesd v7.16b, v16.16b ldr q16, [x0] /* load last round key */ /* q[i] := Add...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_armv8_64.S
1,201
1,223
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:1
/* $NetBSD: aes_armv8_64.S,v 1.15 2020/09/08 23:58:09 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/crypto/aes/arch/arm/aes_armv8_64.S
1
60
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:18
1: mov v24.16b, v31.16b /* q24 := tweak[0] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v25.16b, v31.16b /* q25 := tweak[1] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v26.16b, v31.16b /* q26 := tweak[2] */ bl aesarmv8_xts_mulx /* q31 *= x; trash x0/q0/q1 */ mov v27.16b, v31.16b /* q2...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/crypto/aes/arch/arm/aes_armv8_64.S
681
740
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:19
b.ne 1b /* repeat if more block groups */ st1 {v31.16b}, [x4] /* update tweak */ ldp fp, lr, [sp], #16 /* pop stack frame */ ret END(aesarmv8_xts_enc8) /* * aesarmv8_xts_dec1(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, uint8_t tweak[16] @x4, * uint32_t nr...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/crypto/aes/arch/arm/aes_armv8_64.S
721
780
NetBSD/src:sys/crypto/aes/arch/arm/aes_armv8_64.S:20
/* * aesarmv8_xts_dec8(const struct aesdec *deckey@x0, const uint8_t *in@x1, * uint8_t *out@x2, size_t nbytes@x3, uint8_t tweak[16] @x4, * uint32_t nrounds@x5) * * Decrypt a contiguous sequdece of blocks with AES-XTS. * * nbytes must be a positive integral multiple of 128. * * Standard ABI calling conv...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_armv8_64.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/crypto/aes/arch/arm/aes_armv8_64.S
761
820
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:1
/* $NetBSD: aes_neon_32.S,v 1.11 2020/09/10 11:31:03 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistri...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
1
60
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:2
.p2align 5 .Lconstants: .Linv_inva: /* inv and inva must be consecutive */ .type inv,_ASM_TYPE_OBJECT inv: .byte 0x80,0x01,0x08,0x0D,0x0F,0x06,0x05,0x0E .byte 0x02,0x0C,0x0B,0x0A,0x09,0x03,0x07,0x04 END(inv) .type inva,_ASM_TYPE_OBJECT inva: .byte 0x80,0x07,0x0B,0x0F,0x06,0x0A,0x04,0x01 .byte 0x09,0x08,0x05,0x0...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
41
100
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:3
.byte 0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F .byte 0x00,0x05,0x0A,0x0F,0x04,0x09,0x0E,0x03 /* 1 */ .byte 0x08,0x0D,0x02,0x07,0x0C,0x01,0x06,0x0B .byte 0x00,0x09,0x02,0x0B,0x04,0x0D,0x06,0x0F /* 2 */ .byte 0x08,0x01,0x0A,0x03,0x0C,0x05,0x0E,0x07 .byte 0x00,0x0D,0x0A,0x07,0x04,0x01,0x0E,0x0B /* 3 */ .byte 0x08,...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
81
140
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:4
.byte 0x00,0x6A,0xBB,0x5F,0xA5,0x74,0xE4,0xCF /* 1 */ .byte 0xFA,0x35,0x2B,0x41,0xD1,0x90,0x1E,0x8E END(sbo) .type dipt,_ASM_TYPE_OBJECT dipt: .byte 0x00,0x5F,0x54,0x0B,0x04,0x5B,0x50,0x0F /* lo */ .byte 0x1A,0x45,0x4E,0x11,0x1E,0x41,0x4A,0x15 .byte 0x00,0x65,0x05,0x60,0xE6,0x83,0xE3,0x86 /* hi */ .byte 0x94,0xF...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
121
180
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:5
.byte 0x00,0xC1,0xAA,0xFF,0xCD,0xA6,0x55,0x0C /* 1 */ .byte 0x32,0x3E,0x59,0x98,0x6B,0xF3,0x67,0x94 END(dsbe) .type dsbo,_ASM_TYPE_OBJECT dsbo: .byte 0x00,0x40,0xF9,0x7E,0x53,0xEA,0x87,0x13 /* 0 */ .byte 0x2D,0x3E,0x94,0xD4,0xB9,0x6D,0xAA,0xC7 .byte 0x00,0x1D,0x44,0x93,0x0F,0x56,0xD7,0x12 /* 1 */ .byte 0x9C,0x8E...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
161
220
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:6
/* * r3: rmod4 * r4: mc * r6,r8,r10,ip: temporaries * q0={d0-d1}: x/ak/A * q1={d2-d3}: 0x0f0f... * q2={d4-d5}: lo/k/j/io * q3={d6-d7}: hi/i/jo * q4={d8-d9}: iptlo * q5={d10-d11}: ipthi * q6={d12-d13}: sb1[0]/sbo[0] * q7={d14-d15}: sb1[1]/sbo[1] * q8={d16-d17}: sb2[0] * q9={d18-d19}: sb2[1] *...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
201
260
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:7
add r8, ip, #(.Linv_inva - .Lconstants) vld1.8 {q6-q7}, [r4 :256] /* q6 = sb1[0], q7 = sb1[1] */ vld1.8 {q8-q9}, [r6 :256] /* q8 = sb2[0], q9 = sb2[1] */ vld1.8 {q10-q11}, [r8 :256] /* q10 = inv, q11 = inva */ /* r4 := mc */ add r4, ip, #(mc - .Lconstants) /* (q2, q3) := (lo, hi) */ vshr.u8 q3, q0, #4 vand q2...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
241
300
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:8
vtbl.8 d27, {q9}, d7 add r6, r4, r3, lsl #5 /* r6 := &mc[rmod4] */ veor q14, q12, q13 /* (q12, q13) := (mc[rmod4].forward, mc[rmod4].backward) */ vld1.8 {q12-q13}, [r6 :256] /* q15 := A2_B = A2 + A(mcf) */ vtbl.8 d30, {q0}, d24 vtbl.8 d31, {q0}, d25 veor q15, q15, q14 /* q14 := A2_B_D = A2_B + A(mcb) */ vt...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
281
340
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:9
vtbl.8 d25, {q10}, d7 /* q13 := jr = 1/j */ vtbl.8 d26, {q10}, d4 vtbl.8 d27, {q10}, d5 /* q12 := iak = 1/i + a/k */ veor q12, q12, q0 /* q13 := jak = 1/j + a/k */ veor q13, q13, q0 /* q12 := iakr = 1/(1/i + a/k) */ vtbl.8 d24, {q10}, d24 vtbl.8 d25, {q10}, d25 /* q13 := jakr = 1/(1/j + a/k) */ vtbl.8 ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
321
380
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:10
/* (q2, q3) := (sbo_0(io), sbo_1(jo)) */ vtbl.8 d4, {q6}, d4 vtbl.8 d5, {q6}, d5 vtbl.8 d6, {q7}, d6 vtbl.8 d7, {q7}, d7 /* q2 := x = rk[nr] + sbo_0(io) + sbo_1(jo) */ veor q2, q2, q14 veor q2, q2, q3 /* q0 := x(sr[rmod4]) */ vtbl.8 d0, {q2}, d30 vtbl.8 d1, {q2}, d31 vpop {d8-d15} pop {r4, r5, r6, r8, r1...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
361
420
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:11
* uint8x16_t@(r0,r1,r2,r3) * aes_neon_dec1(const struct aesdec *dec@r0, * uint8x16_t x@(r2,r3,sp[0],sp[4]), nrounds@sp[8]) */ ENTRY(aes_neon_dec1) #ifdef __SOFTFP__ #ifdef __ARM_BIG_ENDIAN vmov d0, r3, r2 /* d0 := x lo */ #else vmov d0, r2, r3 /* d0 := x lo */ #endif vldr d1, [sp] /* d1 := x hi */ ldr r1,...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
401
460
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:12
/* ip := .Lconstants - .Lconstants_addr, r10 := .Lconstants_addr */ ldr ip, .Lconstants_addr adr r10, .Lconstants_addr vld1.8 {q14}, [r0 :128]! /* q14 = *rk++ */ rsb r3, r1, #0 /* r3 := ~(x - 1) = -x */ vmov.i8 q1, #0x0f and r3, r3, #3 /* r3 := 3 & ~(x - 1) */ /* ip := .Lconstants */ add ip, ip, r10 /* (q...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
441
500
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:13
add r4, ip, #(dsbd - .Lconstants) add r5, ip, #(dsbe - .Lconstants) /* q0 := rk[0] + diptlo(lo) + dipthi(hi) */ veor q0, q14, q2 veor q0, q0, q3 b 2f _ALIGN_TEXT 1: /* load dsbd */ vld1.8 {q8-q9}, [r4 :256] /* q8 := dsbd[0], q9 := dsbd[1] */ vld1.8 {q14}, [r0 :128]! /* q14 = *rk++ */ /* q0 := rk[i] + dsb9...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
481
540
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:14
vtbl.8 d29, {q0}, d31 vtbl.8 d24, {q6}, d4 vtbl.8 d25, {q6}, d5 vtbl.8 d26, {q7}, d6 vtbl.8 d27, {q7}, d7 veor q0, q14, q12 veor q0, q0, q13 /* q0 := x(mc) + dsbe_0(io) + dsbe_1(jo) */ vtbl.8 d28, {q0}, d30 vtbl.8 d29, {q0}, d31 vtbl.8 d24, {q8}, d4 vtbl.8 d25, {q8}, d5 vtbl.8 d26, {q9}, d6 vtbl.8 d27, {q...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
521
580
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:15
/* q13 := jr = 1/j */ vtbl.8 d26, {q10}, d4 vtbl.8 d27, {q10}, d5 /* q12 := iak = 1/i + a/k */ veor q12, q12, q0 /* q13 := jak = 1/j + a/k */ veor q13, q13, q0 /* q12 := iakr = 1/(1/i + a/k) */ vtbl.8 d24, {q10}, d24 vtbl.8 d25, {q10}, d25 /* q13 := jakr = 1/(1/j + a/k) */ vtbl.8 d26, {q10}, d26 vtbl.8 ...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
561
620
NetBSD/src:sys/crypto/aes/arch/arm/aes_neon_32.S:16
vtbl.8 d5, {q6}, d5 vtbl.8 d6, {q7}, d6 vtbl.8 d7, {q7}, d7 /* q2 := x = rk[nr] + dsbo_0(io) + dsbo_1(jo) */ veor q2, q2, q14 veor q2, q2, q3 /* q0 := x(sr[i]) */ vtbl.8 d0, {q2}, d30 vtbl.8 d1, {q2}, d31 vpop {d8-d15} pop {r4, r5, r6, r8, r10, lr} #ifdef __SOFTFP__ #ifdef __ARM_BIG_ENDIAN vmov r1, r0, d0...
arm
gas-like
handwritten
NetBSD/src
sys/crypto/aes/arch/arm/aes_neon_32.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/arm/aes_neon_32.S
601
625
NetBSD/src:sys/crypto/aes/arch/x86/aes_ni_64.S:2
* so that MOVAPS/MOVUPS might incur a penalty when the register is * later used for integer paths, but in practice they don't. So we use * the one whose instruction encoding is shorter -- MOVAPS/MOVUPS. */ #define movdqa movaps #define movdqu movups /* * aesni_setenckey128(struct aesenc *enckey@rdi, const uint8_t...
x86_64
gas-att
handwritten
NetBSD/src
sys/crypto/aes/arch/x86/aes_ni_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/x86/aes_ni_64.S
41
100
NetBSD/src:sys/crypto/aes/arch/x86/aes_ni_64.S:3
/* * aesni_setenckey192(struct aesenc *enckey@rdi, const uint8_t key[24] @rsi) * * Expand a 24-byte AES-192 key into 12 round keys. * * Standard ABI calling convention. */ ENTRY(aesni_setenckey192) movdqu (%rsi),%xmm0 /* load master key [0:128) into %xmm0 */ movq 0x10(%rsi),%xmm1 /* load master key [128:192) in...
x86_64
gas-att
handwritten
NetBSD/src
sys/crypto/aes/arch/x86/aes_ni_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/x86/aes_ni_64.S
81
140
NetBSD/src:sys/crypto/aes/arch/x86/aes_ni_64.S:4
movdqu (%rsi),%xmm0 /* load master key [0:128) into %xmm0 */ movdqu 0x10(%rsi),%xmm1 /* load master key [128:256) into %xmm1 */ movdqa %xmm0,(%rdi) /* store master key [0:128) as round key */ movdqa %xmm1,0x10(%rdi) /* store master key [128:256) as round key */ lea 0x20(%rdi),%rdi /* advance %rdi to next round key ...
x86_64
gas-att
handwritten
NetBSD/src
sys/crypto/aes/arch/x86/aes_ni_64.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/crypto/aes/arch/x86/aes_ni_64.S
121
180