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:tests/kernel/arch/aarch64/h_execregs.S:1
/* $NetBSD: h_execregs.S,v 1.1 2025/02/27 00:55:31 riastradh Exp $ */ /*- * Copyright (c) 2025 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...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/aarch64/h_execregs.S
BSD-2-Clause
4e5fdd19561a6d4215feb241f823decca3288417
github
kernel
https://github.com/NetBSD/src/blob/4e5fdd19561a6d4215feb241f823decca3288417/tests/kernel/arch/aarch64/h_execregs.S
1
60
NetBSD/src:tests/kernel/arch/alpha/execsp.S:2
* * ELF entry point. Saves the stack pointer in startsp and defers * to the usual csu __start routine. */ LEAF(execsp_start, 4) LDGP(pv) ldq at_reg, startsp(gp) !literal stq sp, 0(at_reg) ldq pv, __start(gp) !literal jmp (pv), __start END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. Sav...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/alpha/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/alpha/execsp.S
41
100
NetBSD/src:tests/kernel/arch/alpha/execsp.S:3
ldq at_reg, mainsp(gp) !literal stq sp, 0(at_reg) mov zero, v0 RET END(main) /* * void execsp_dtor(void) * * ELF destructor. Saves the stack pointer in dtorsp and defers * to the C execsp_main in h_execsp.c to report the stack pointers * back to the t_signal_and_sp parent. */ LEAF(execsp_dtor, 0) LDGP(pv) ...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/alpha/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/alpha/execsp.S
81
106
NetBSD/src:tests/kernel/arch/alpha/execsp.S:2
* * ELF entry point. Saves the stack pointer in startsp and defers * to the usual csu __start routine. */ LEAF(execsp_start, 4) LDGP(pv) ldq at_reg, startsp(gp) !literal stq sp, 0(at_reg) ldq pv, __start(gp) !literal jmp (pv), __start END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. Sav...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/alpha/execsp.S
BSD-2-Clause
54f8e723d4c94aeb7c8a6abaacda042420303e2c
github
kernel
https://github.com/NetBSD/src/blob/54f8e723d4c94aeb7c8a6abaacda042420303e2c/tests/kernel/arch/alpha/execsp.S
41
100
NetBSD/src:tests/kernel/arch/alpha/execsp.S:3
ldq at_reg, mainsp(gp) !literal stq sp, 0(at_reg) RET END(main) /* * void execsp_dtor(void) * * ELF destructor. Saves the stack pointer in dtorsp and defers * to the C execsp_main in h_execsp.c to report the stack pointers * back to the t_signal_and_sp parent. */ LEAF(execsp_dtor, 0) LDGP(pv) ldq at_reg, dt...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/alpha/execsp.S
BSD-2-Clause
54f8e723d4c94aeb7c8a6abaacda042420303e2c
github
kernel
https://github.com/NetBSD/src/blob/54f8e723d4c94aeb7c8a6abaacda042420303e2c/tests/kernel/arch/alpha/execsp.S
81
105
NetBSD/src:tests/kernel/arch/arm/contextspfunc.S:1
/* $NetBSD: contextspfunc.S,v 1.2 2025/05/07 16:26:47 uwe Exp $ */ /*- * Copyright (c) 2025 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. Redistributio...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/contextspfunc.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/arm/contextspfunc.S
1
51
NetBSD/src:tests/kernel/arch/arm/contextspfunc.S:1
/* $NetBSD: contextspfunc.S,v 1.1 2025/04/25 02:24:01 riastradh Exp $ */ /*- * Copyright (c) 2025 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
tests/kernel/arch/arm/contextspfunc.S
BSD-2-Clause
b95188b8b76d5f1e43957cdda1f9bd76359d7c7e
github
kernel
https://github.com/NetBSD/src/blob/b95188b8b76d5f1e43957cdda1f9bd76359d7c7e/tests/kernel/arch/arm/contextspfunc.S
1
51
NetBSD/src:tests/kernel/arch/arm/execsp.S:2
*/ ENTRY(execsp_start) 0: GOT_INIT(r3, .Lgot.execsp_start) mov r4, sp GOT_GET(r5, r3, .Lstartsp) str r4, [r5] b PLT_SYM(_C_LABEL(__start)) GOT_INITSYM(.Lgot.execsp_start, 0b) .Lstartsp: .word GOT_SYM(startsp) END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. Saves the stack pointer in ctors...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/arm/execsp.S
41
100
NetBSD/src:tests/kernel/arch/arm/execsp.S:3
* zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ ENTRY(main) 0: GOT_INIT(r0, .Lgot.main) mov r1, sp GOT_GET(r2, r0, .Lmainsp) str r1, [r2] mov r0, #0 RET GOT_INITSYM(.Lgot.main, 0b) .Lmainsp: .word GOT_SYM(mainsp) END(main) /* * void execsp_dtor(void) * * ELF destruc...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/arm/execsp.S
81
119
NetBSD/src:tests/kernel/arch/arm/execsp.S:2
*/ ENTRY(execsp_start) GOT_INIT(r3, .Lgot.execsp_start, .Lpc.execsp_start) mov r4, sp GOT_GET(r5, r3, .Lstartsp) str r4, [r5] b PLT_SYM(_C_LABEL(__start)) GOT_INITSYM(.Lgot.execsp_start, .Lpc.execsp_start) .Lstartsp: .word GOT_SYM(startsp) END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. ...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
ead4eeb69276e6f1150217e7baec426ef75ea36e
github
kernel
https://github.com/NetBSD/src/blob/ead4eeb69276e6f1150217e7baec426ef75ea36e/tests/kernel/arch/arm/execsp.S
41
100
NetBSD/src:tests/kernel/arch/arm/execsp.S:3
* zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ ENTRY(main) GOT_INIT(r0, .Lgot.main, .Lpc.main) mov r1, sp GOT_GET(r2, r0, .Lmainsp) str r1, [r2] mov r0, #0 RET GOT_INITSYM(.Lgot.main, .Lpc.main) .Lmainsp: .word GOT_SYM(mainsp) END(main) /* * void execsp_dtor(void) ...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
ead4eeb69276e6f1150217e7baec426ef75ea36e
github
kernel
https://github.com/NetBSD/src/blob/ead4eeb69276e6f1150217e7baec426ef75ea36e/tests/kernel/arch/arm/execsp.S
81
119
NetBSD/src:tests/kernel/arch/arm/execsp.S:2
*/ ENTRY(execsp_start) GOT_INIT(r3, .Lgot.execsp_start, .Lpc.execsp_start) mov r4, sp GOT_GET(r5, r3, .Lstartsp) str r4, [r5] b PLT_SYM(_C_LABEL(__start)) GOT_INITSYM(.Lgot.execsp_start, .Lpc.execsp_start) .Lstartsp: .word GOT_SYM(startsp) END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. ...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
334915c97c2e9b3911a4db529beeafa254f14cd1
github
kernel
https://github.com/NetBSD/src/blob/334915c97c2e9b3911a4db529beeafa254f14cd1/tests/kernel/arch/arm/execsp.S
41
100
NetBSD/src:tests/kernel/arch/arm/execsp.S:3
* zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ ENTRY(main) GOT_INIT(r0, .Lgot.main, .Lpc.main) mov r1, sp GOT_GET(r2, r0, .Lmainsp) str r1, [r2] RET GOT_INITSYM(.Lgot.main, .Lpc.main) .Lmainsp: .word GOT_SYM(mainsp) END(main) /* * void execsp_dtor(void) * * ELF des...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
334915c97c2e9b3911a4db529beeafa254f14cd1
github
kernel
https://github.com/NetBSD/src/blob/334915c97c2e9b3911a4db529beeafa254f14cd1/tests/kernel/arch/arm/execsp.S
81
118
NetBSD/src:tests/kernel/arch/arm/execsp.S:2
*/ ENTRY(execsp_start) GOT_INIT(r0, .Lgot.execsp_start, .Lpc.execsp_start) mov r1, sp GOT_GET(r2, r0, .Lstartsp) str r1, [r2] b PLT_SYM(_C_LABEL(__start)) GOT_INITSYM(.Lgot.execsp_start, .Lpc.execsp_start) .Lstartsp: .word GOT_SYM(startsp) END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. ...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/execsp.S
BSD-2-Clause
b95188b8b76d5f1e43957cdda1f9bd76359d7c7e
github
kernel
https://github.com/NetBSD/src/blob/b95188b8b76d5f1e43957cdda1f9bd76359d7c7e/tests/kernel/arch/arm/execsp.S
41
100
NetBSD/src:tests/kernel/arch/arm/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.3 2025/05/07 16:26:47 uwe Exp $ */ /*- * Copyright (c) 2025 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. Redistribut...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/signalsphandler.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/arm/signalsphandler.S
1
51
NetBSD/src:tests/kernel/arch/arm/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.2 2025/04/27 15:38:50 riastradh Exp $ */ /*- * Copyright (c) 2025 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. Redis...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/signalsphandler.S
BSD-2-Clause
189e909113b0a7461a690d547bf24beadd528d4f
github
kernel
https://github.com/NetBSD/src/blob/189e909113b0a7461a690d547bf24beadd528d4f/tests/kernel/arch/arm/signalsphandler.S
1
51
NetBSD/src:tests/kernel/arch/arm/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.1 2025/04/25 02:24:01 riastradh Exp $ */ /*- * Copyright (c) 2025 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. Redis...
arm
gas-like
handwritten
NetBSD/src
tests/kernel/arch/arm/signalsphandler.S
BSD-2-Clause
b95188b8b76d5f1e43957cdda1f9bd76359d7c7e
github
kernel
https://github.com/NetBSD/src/blob/b95188b8b76d5f1e43957cdda1f9bd76359d7c7e/tests/kernel/arch/arm/signalsphandler.S
1
51
NetBSD/src:tests/kernel/arch/hppa/execsp.S:2
* ELF entry point. Saves the stack pointer in startsp and defers * to the usual csu __start routine. */ LEAF_ENTRY(execsp_start) /* * Set up the data pointer (r19) and linkage table register * (r27) like the real startup routine so we can get at the * global symbols startsp and __start. * * XXX Not really...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/execsp.S
41
100
NetBSD/src:tests/kernel/arch/hppa/execsp.S:3
*/ LEAF_ENTRY(execsp_ctor) addil LT%_C_LABEL(ctorsp), %r19 /* r1 := &ctorsp */ ldw RT%_C_LABEL(ctorsp)(%r1), %r1 bv %r0(%rp) /* return */ stw %sp, 0(%r1) /* ctorsp := sp */ EXIT(execsp_ctor) /* Make execsp_ctor a constructor. */ .section .ctors,"aw",@progbits .p2align 2 .word _C_LABEL(execsp_ctor) /* * ...
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/execsp.S
81
130
NetBSD/src:tests/kernel/arch/hppa/execsp.S:4
addil LT%_C_LABEL(execsp_main), %r19 /* r1 := execsp_main */ ldw RT%_C_LABEL(execsp_main)(%r1), %r1 bv %r0(%r1) /* jump to execsp_main */ stw %sp, 0(%r20) /* startsp := sp */ EXIT(execsp_dtor) /* Make execsp_ctor a destructor. */ .section .dtors,"aw",@progbits .p2align 2 .word _C_LABEL(execsp_dtor)
arm64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/execsp.S
121
130
NetBSD/src:tests/kernel/arch/hppa/h_execregs.S:2
ldo (NEXECREGS*4)(%sp), %sp /* space for NEXECREGS */ stw %t1, (4*(0 - NEXECREGS))(%sp) /* order matches execregs.h */ stw %t2, (4*(1 - NEXECREGS))(%sp) /* sp: stack pointer */ stw %t3, (4*(2 - NEXECREGS))(%sp) /* cr17/iisq_head: privileged */ /* cr17/iisq_tail: privileged */ /* cr18/iioq_head: privileged */ /...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/h_execregs.S
41
100
NetBSD/src:tests/kernel/arch/hppa/h_execregs.S:3
stw %arg1, (4*(24 - NEXECREGS))(%sp) /* arg0: ps_strings */ stw %dp, (4*(25 - NEXECREGS))(%sp) stw %ret0, (4*(26 - NEXECREGS))(%sp) stw %ret1, (4*(27 - NEXECREGS))(%sp) stw %r31, (4*(28 - NEXECREGS))(%sp) /* sr0-sr7: space registers initialized by kernel */ /* cr9/pidr2: privileged */ /* cr12/pidr3: privileged ...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/h_execregs.S
81
140
NetBSD/src:tests/kernel/arch/hppa/h_execregs.S:4
fstd,ma %fr13, 8(%t1) fstd,ma %fr14, 8(%t1) fstd,ma %fr15, 8(%t1) fstd,ma %fr16, 8(%t1) fstd,ma %fr17, 8(%t1) fstd,ma %fr18, 8(%t1) fstd,ma %fr19, 8(%t1) fstd,ma %fr20, 8(%t1) fstd,ma %fr21, 8(%t1) fstd,ma %fr22, 8(%t1) fstd,ma %fr23, 8(%t1) fstd,ma %fr24, 8(%t1) fstd,ma %fr25, 8(%t1) fstd,ma %fr26, 8(%t1)...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/hppa/h_execregs.S
121
168
NetBSD/src:tests/kernel/arch/hppa/h_execregs.S:3
stw %arg1, (4*(24 - NEXECREGS))(%sp) /* arg0: ps_strings */ stw %dp, (4*(25 - NEXECREGS))(%sp) stw %ret0, (4*(26 - NEXECREGS))(%sp) stw %ret1, (4*(27 - NEXECREGS))(%sp) stw %r31, (4*(28 - NEXECREGS))(%sp) /* sr0-sr7: space registers initialized by kernel */ /* cr9/pidr2: privileged */ /* cr12/pidr3: privileged ...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/hppa/h_execregs.S
BSD-2-Clause
4e5fdd19561a6d4215feb241f823decca3288417
github
kernel
https://github.com/NetBSD/src/blob/4e5fdd19561a6d4215feb241f823decca3288417/tests/kernel/arch/hppa/h_execregs.S
81
129
NetBSD/src:tests/kernel/arch/i386/contextspfunc.S:1
/* $NetBSD: contextspfunc.S,v 1.1 2025/04/21 02:33:44 riastradh Exp $ */ /*- * Copyright (c) 2025 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...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/contextspfunc.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/contextspfunc.S
1
56
NetBSD/src:tests/kernel/arch/i386/execsp.S:1
/* $NetBSD: execsp.S,v 1.1 2025/04/20 22:33:13 riastradh Exp $ */ /*- * Copyright (c) 2025 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. Redistribution...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/execsp.S
1
60
NetBSD/src:tests/kernel/arch/i386/execsp.S:2
*/ ENTRY(execsp_start) call getpc_eax addl $_GLOBAL_OFFSET_TABLE_,%eax movl _C_LABEL(startsp)@GOT(%eax),%eax movl %esp,(%eax) jmp _C_LABEL(__start)@PLT END(execsp_start) /* * void execsp_ctor(void) * * ELF constructor. Saves the stack pointer in ctorsp and * returns. */ ENTRY(execsp_ctor) call getpc_eax a...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/execsp.S
41
100
NetBSD/src:tests/kernel/arch/i386/execsp.S:3
xorl %eax,%eax ret END(main) /* * void execsp_dtor(void) * * ELF destructor. Saves the stack pointer in dtorsp and defers * to the C execsp_main in h_execsp.c to report the stack pointers * back to the t_signal_and_sp parent. */ ENTRY(execsp_dtor) call getpc_eax addl $_GLOBAL_OFFSET_TABLE_,%eax movl _C_LABE...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/execsp.S
81
112
NetBSD/src:tests/kernel/arch/i386/h_execregs.S:1
/* $NetBSD: h_execregs.S,v 1.1 2025/02/27 00:55:32 riastradh Exp $ */ /*- * Copyright (c) 2025 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...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/h_execregs.S
1
60
NetBSD/src:tests/kernel/arch/i386/h_execregs.S:2
subl $(NEXECREGS*4),%esp /* space for NEXECREGS registers */ movl %edi,0*4(%esp) /* order matches execregs.h */ movl %esi,1*4(%esp) movl %ebp,2*4(%esp) movl %edx,3*4(%esp) movl %ecx,4*4(%esp) movl %eax,5*4(%esp) /* call write(STDOUT_FILENO, regs, sizeof(regs)) */ movl %esp,%eax /* eax := regs */ pushl $(NEX...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/h_execregs.S
41
85
NetBSD/src:tests/kernel/arch/i386/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.1 2025/04/20 22:33:13 riastradh Exp $ */ /*- * Copyright (c) 2025 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. Redis...
x86
gas-att
handwritten
NetBSD/src
tests/kernel/arch/i386/signalsphandler.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/i386/signalsphandler.S
1
56
NetBSD/src:tests/kernel/arch/mips/execsp.S:2
* void *obj_main@a2, struct ps_strings *ps_strings@a3) * * ELF entry point. Saves the stack pointer in startsp and defers * to the usual csu __start routine. */ LEAF(execsp_start) PIC_PROLOGUE(execsp_start) /* gp setup, sets t3 */ PTR_LA t1, _C_LABEL(startsp) /* load t1 := &startsp */ NOP_L /* load haz...
mips
gas-like
handwritten
NetBSD/src
tests/kernel/arch/mips/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/mips/execsp.S
41
100
NetBSD/src:tests/kernel/arch/mips/execsp.S:3
* Main function. Saves the stack pointer in mainsp and returns * zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ LEAF(main) PIC_PROLOGUE(main) /* gp setup, sets t3 */ PTR_LA t1, _C_LABEL(mainsp) /* load t1 := &mainsp */ NOP_L /* load hazard */ PTR_S sp, 0(t1) /* stor...
mips
gas-like
handwritten
NetBSD/src
tests/kernel/arch/mips/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/mips/execsp.S
81
118
NetBSD/src:tests/kernel/arch/mips/execsp.S:2
* void *obj_main@a2, struct ps_strings *ps_strings@a3) * * ELF entry point. Saves the stack pointer in startsp and defers * to the usual csu __start routine. */ LEAF(execsp_start) move t0, sp /* save stack pointer just in case */ PIC_PROLOGUE(execsp_start) /* gp setup, sets t3 */ PTR_LA t1, _C_LABEL(sta...
mips
gas-like
handwritten
NetBSD/src
tests/kernel/arch/mips/execsp.S
BSD-2-Clause
4b16b10aa34baa178b3e47f1281582fd2e968718
github
kernel
https://github.com/NetBSD/src/blob/4b16b10aa34baa178b3e47f1281582fd2e968718/tests/kernel/arch/mips/execsp.S
41
100
NetBSD/src:tests/kernel/arch/mips/execsp.S:3
/* * int main(int argc@a0, char **argv@a1, ...) * * Main function. Saves the stack pointer in mainsp and returns * zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ LEAF(main) move t0, sp /* save stack pointer just in case */ PIC_PROLOGUE(main) /* gp setup, sets t3 */ ...
mips
gas-like
handwritten
NetBSD/src
tests/kernel/arch/mips/execsp.S
BSD-2-Clause
4b16b10aa34baa178b3e47f1281582fd2e968718
github
kernel
https://github.com/NetBSD/src/blob/4b16b10aa34baa178b3e47f1281582fd2e968718/tests/kernel/arch/mips/execsp.S
81
126
NetBSD/src:tests/kernel/arch/riscv/execsp.S:2
*/ ENTRY(execsp_start) .option push .option norelax /* Don't optimize this into `mv gp, gp'! */ lla gp, __global_pointer$ .option pop PTR_LA t0, _C_LABEL(startsp) /* t0 := &startsp */ PTR_S sp, 0(t0) /* startsp := sp */ tail _C_LABEL(__start) /* tail call __start */ END(execsp_start) /* * void execsp_ctor(v...
riscv
gas-like
handwritten
NetBSD/src
tests/kernel/arch/riscv/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/riscv/execsp.S
41
100
NetBSD/src:tests/kernel/arch/riscv/execsp.S:3
ret END(main) /* * void execsp_dtor(void) * * ELF destructor. Saves the stack pointer in dtorsp and defers * to the C execsp_main in h_execsp.c to report the stack pointers * back to the t_signal_and_sp parent. */ ENTRY(execsp_dtor) PTR_LA t0, _C_LABEL(dtorsp) /* t0 := &dtorsp */ PTR_S sp, 0(t0) /* dtorsp :=...
riscv
gas-like
handwritten
NetBSD/src
tests/kernel/arch/riscv/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/riscv/execsp.S
81
100
NetBSD/src:tests/kernel/arch/sh3/contextspfunc.S:1
/* $NetBSD: contextspfunc.S,v 1.1 2025/04/26 22:34:52 uwe Exp $ */ /*- * Copyright (c) 2025 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. Redistributio...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/contextspfunc.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/contextspfunc.S
1
55
NetBSD/src:tests/kernel/arch/sh3/execsp.S:1
/* $NetBSD: execsp.S,v 1.2 2025/04/27 00:03:46 riastradh Exp $ */ /*- * Copyright (c) 2025 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. Redistribution...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/execsp.S
1
60
NetBSD/src:tests/kernel/arch/sh3/execsp.S:2
*/ ENTRY(execsp_start) mov sp, r1 // for consistency, don't need to PIC_PROLOGUE_NOSAVE(.L_start_GOT) MOVL_VAR(.L_startsp, r0) mov.l r1, @r0 mov.l .L___start, r0 1: JUMP r0 nop .p2align 2 .L_start_GOT: PIC_GOT_DATUM .L_startsp: VAR_DATUM(startsp) .L___start: CALL_DATUM(__start, 1b) SET_ENTRY_SIZE(execsp_sta...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/execsp.S
41
100
NetBSD/src:tests/kernel/arch/sh3/execsp.S:3
/* Make execsp_ctor a constructor. */ .pushsection .ctors, "aw", @progbits .p2align 2 .long _C_LABEL(execsp_ctor) .popsection /* * int main(int argc, char **argv, ...) * * Main function. Saves the stack pointer in mainsp and returns * zero. We will call execsp_main in execsp_dtor once dtorsp has * been ini...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/execsp.S
81
140
NetBSD/src:tests/kernel/arch/sh3/execsp.S:4
sts.l pr, @-sp PIC_PROLOGUE(.L_dtor_GOT) MOVL_VAR(.L_dtorsp, r0) mov.l r1, @r0 mov.l .L_execsp_main, r0 1: CALL r0 nop PIC_EPILOGUE lds.l @sp+, pr rts nop .p2align 2 .L_dtor_GOT: PIC_GOT_DATUM .L_dtorsp: VAR_DATUM(dtorsp) .L_execsp_main: CALL_DATUM(execsp_main, 1b) SET_ENTRY_SIZE(execsp_dtor) /* Make...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/execsp.S
121
146
NetBSD/src:tests/kernel/arch/sh3/execsp.S:1
/* $NetBSD: execsp.S,v 1.1 2025/04/26 22:34:52 uwe Exp $ */ /*- * Copyright (c) 2025 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 s...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/execsp.S
BSD-2-Clause
9b8f2e8a6005bb42bf7abc036298ff42a21c1067
github
kernel
https://github.com/NetBSD/src/blob/9b8f2e8a6005bb42bf7abc036298ff42a21c1067/tests/kernel/arch/sh3/execsp.S
1
60
NetBSD/src:tests/kernel/arch/sh3/h_execregs.S:1
/* $NetBSD: h_execregs.S,v 1.1 2025/04/27 02:24:07 uwe Exp $ */ /*- * Copyright (c) 2025 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 ...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/h_execregs.S
1
60
NetBSD/src:tests/kernel/arch/sh3/h_execregs.S:2
mov.l r2, @-sp mov.l r3, @-sp mov.l r4, @-sp mov.l r5, @-sp mov.l r6, @-sp mov.l r7, @-sp mov.l r8, @-sp mov.l r9, @-sp mov.l r10, @-sp mov.l r11, @-sp mov.l r12, @-sp mov.l r13, @-sp mov.l r14, @-sp sts.l pr, @-sp sts.l mach, @-sp sts.l macl, @-sp mov #0, r0 mov.l r0, @-sp // _REG_SR is privileged mo...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/h_execregs.S
41
86
NetBSD/src:tests/kernel/arch/sh3/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.2 2025/04/26 23:49:55 uwe Exp $ */ /*- * Copyright (c) 2025 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. Redistribut...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/signalsphandler.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/signalsphandler.S
1
60
NetBSD/src:tests/kernel/arch/sh3/signalsphandler.S:2
#ifdef __PIC__ // PR kern/59327: don't touch stack as SP may be misaligned // and as SuperH is a strict alignment architecture, we will // get SIGBUS if we try to save registers on the stack mov r12, r2 #endif PIC_PROLOGUE_NOSAVE(.L_GOT) MOVL_VAR(.L_signalsp, r0) mov.l r1, @r0 #ifdef __PIC__ mov r2, r12 #endi...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/signalsphandler.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sh3/signalsphandler.S
41
61
NetBSD/src:tests/kernel/arch/sh3/signalsphandler.S:1
/* $NetBSD: signalsphandler.S,v 1.1 2025/04/26 22:34:52 uwe Exp $ */ /*- * Copyright (c) 2025 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. Redistribut...
x86_64
intel-like
handwritten
NetBSD/src
tests/kernel/arch/sh3/signalsphandler.S
BSD-2-Clause
9b8f2e8a6005bb42bf7abc036298ff42a21c1067
github
kernel
https://github.com/NetBSD/src/blob/9b8f2e8a6005bb42bf7abc036298ff42a21c1067/tests/kernel/arch/sh3/signalsphandler.S
1
52
NetBSD/src:tests/kernel/arch/sparc/contextspfunc.S:2
#else #define SETHI(label, got, reg) \ sethi %hi(label), reg /* reg := &label - %lo(label) */ #define LO(label, reg) \ reg + %lo(label) #endif .text /* * contextspfunc() * * makecontext(3) function. Store the stack pointer on entry at * the global variable contextsp and call contextdon...
sparc
gas-like
handwritten
NetBSD/src
tests/kernel/arch/sparc/contextspfunc.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sparc/contextspfunc.S
41
64
NetBSD/src:tests/kernel/arch/sparc/execsp.S:2
#else #define SETHI(label, got, reg) \ sethi %hi(label), reg /* reg := &label - %lo(label) */ #define LO(label, reg) \ reg + %lo(label) #endif .text /* * void execsp_start(struct ps_strings *ps_strings@g1, * void *obj_main@g2, void (*cleanup@g3)(void)) * * ELF entry point. Saves th...
sparc
gas-like
handwritten
NetBSD/src
tests/kernel/arch/sparc/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sparc/execsp.S
41
100
NetBSD/src:tests/kernel/arch/sparc/execsp.S:3
.pushsection .ctors,"aw",@progbits .p2align 2 .long _C_LABEL(execsp_ctor) .popsection /* * int main(int argc@a0, char **argv@a1, ...) * * Main function. Saves the stack pointer in mainsp and returns * zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ ENTRY(main) /* Remind...
sparc
gas-like
handwritten
NetBSD/src
tests/kernel/arch/sparc/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sparc/execsp.S
81
123
NetBSD/src:tests/kernel/arch/sparc/signalsphandler.S:2
#else #define SETHI(label, got, reg) \ sethi %hi(label), reg /* reg := &label - %lo(label) */ #define LO(label, reg) \ reg + %lo(label) #endif .text /* * signalsphandler(signo@o0) * * Signal handler. Store the stack pointer on entry at the global * variable signalsp and return. */ ENT...
sparc
gas-like
handwritten
NetBSD/src
tests/kernel/arch/sparc/signalsphandler.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/sparc/signalsphandler.S
41
62
NetBSD/src:tests/kernel/arch/vax/h_execregs.S:1
/* $NetBSD: h_execregs.S,v 1.1 2025/02/27 00:55:32 riastradh Exp $ */ /*- * Copyright (c) 2025 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...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/vax/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/vax/h_execregs.S
1
60
NetBSD/src:tests/kernel/arch/vax/h_execregs.S:2
ENTRY(execregs_start, 0) /* store registers to a buffer on stack */ subl2 $BUFSIZE,%sp /* space for NEXECREGS registers */ movl %fp,SLOT(0) /* order matches execregs.h */ movl %ap,SLOT(1) /* sp: stack pointer */ movl %r0,SLOT(2) movl %r1,SLOT(3) movl %r2,SLOT(4) movl %r3,SLOT(5) movl %r4,SLOT(6) movl %r5,S...
x86_64
gas-like
handwritten
NetBSD/src
tests/kernel/arch/vax/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/vax/h_execregs.S
41
87
NetBSD/src:tests/kernel/arch/x86_64/execsp.S:2
*/ ENTRY(execsp_start) movq %rsp,_C_LABEL(startsp)(%rip) /* * No adjustment like in main because entry point is special * and the amd64 csu __start routine takes care of it. * * XXX Why don't we just arrange to align it in the kernel * anyway? */ jmp _C_LABEL(__start) END(execsp_start) /* * void execsp...
x86_64
gas-att
handwritten
NetBSD/src
tests/kernel/arch/x86_64/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/x86_64/execsp.S
41
100
NetBSD/src:tests/kernel/arch/x86_64/execsp.S:3
/* * int main(int argc@rdi, char **argv@rsi, ...) * * Main function. Saves the stack pointer in mainsp and returns * zero. We will call execsp_main in execsp_dtor once dtorsp has * been initialized. */ ENTRY(main) movq %rsp,_C_LABEL(mainsp)(%rip) addq $-8,_C_LABEL(mainsp)(%rip) xorl %eax,%eax ret END(main) ...
x86_64
gas-att
handwritten
NetBSD/src
tests/kernel/arch/x86_64/execsp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/x86_64/execsp.S
81
111
NetBSD/src:tests/kernel/arch/x86_64/h_execregs.S:1
/* $NetBSD: h_execregs.S,v 1.1 2025/02/27 00:55:32 riastradh Exp $ */ /*- * Copyright (c) 2025 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...
x86_64
gas-att
handwritten
NetBSD/src
tests/kernel/arch/x86_64/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/x86_64/h_execregs.S
1
60
NetBSD/src:tests/kernel/arch/x86_64/h_execregs.S:2
subq $(NEXECREGS*8),%rsp /* space for NEXECREGS registers */ movq %rdi,0*8(%rsp) /* order matches execregs.h */ movq %rsi,1*8(%rsp) movq %rdx,2*8(%rsp) movq %r10,3*8(%rsp) movq %r8,4*8(%rsp) movq %r9,5*8(%rsp) movq %rcx,6*8(%rsp) movq %r11,7*8(%rsp) movq %r12,8*8(%rsp) movq %r13,9*8(%rsp) movq %r14,10*8(%rs...
x86_64
gas-att
handwritten
NetBSD/src
tests/kernel/arch/x86_64/h_execregs.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/kernel/arch/x86_64/h_execregs.S
41
82
NetBSD/src:tests/lib/csu/arch/alpha/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ LEAF_NOPROFILE(check_stack_alignment, 0) ldiq v0, 0 and sp, 7, t0 cmoveq t0, 1, v0 ret E...
arm64
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/alpha/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/alpha/h_initfini_align.S
1
16
NetBSD/src:tests/lib/csu/arch/arm/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ ARM_ENTRY(check_stack_alignment) #ifdef __ARM_EABI__ tst sp, #7 #else tst sp, #3 #endif m...
arm
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/arm/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/arm/h_initfini_align.S
1
20
NetBSD/src:tests/lib/csu/arch/hppa/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/11/15 11:48:30 skrll Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 11:48:30 skrll Exp $") LEAF_ENTRY(check_stack_alignment) extru %sp,31,6,%ret0 comiclr,<> 0, %ret0, %ret0 ldi 1,%ret0 bv,n %r0(%r2) EXIT(check_stack_alignment)
arm64
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/hppa/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/hppa/h_initfini_align.S
1
12
NetBSD/src:tests/lib/csu/arch/i386/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $") _ENTRY(check_stack_alignment) movl %esp, %eax andl $3, %eax setz %al movzbl %al, %eax ret
x86
gas-att
handwritten
NetBSD/src
tests/lib/csu/arch/i386/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/i386/h_initfini_align.S
1
12
NetBSD/src:tests/lib/csu/arch/ia64/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.2 2014/03/16 09:27:04 cherry Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.2 2014/03/16 09:27:04 cherry Exp $") ENTRY(check_stack_alignment, 0) .prologue .regstk 0, 2, 0, 0 alloc loc0 = ar.pfs, 0, 2, 0, 0 .body mov ret0 = 1 ;; /* ar.bsp has an 8...
arm64
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/ia64/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/ia64/h_initfini_align.S
1
37
NetBSD/src:tests/lib/csu/arch/mips/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ LEAF_NOPROFILE(check_stack_alignment) #ifdef __mips_o32 andi v1,sp,3 #else andi v1,sp,7 #e...
mips
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/mips/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/mips/h_initfini_align.S
1
19
NetBSD/src:tests/lib/csu/arch/powerpc/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.2 2017/02/27 20:22:32 chs Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.2 2017/02/27 20:22:32 chs Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ _ENTRY(check_stack_alignment) li %r3,0 andi. %r0,%r1,15 bnelr %cr0 li %r3,1 blr END(check...
powerpc
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/powerpc/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/powerpc/h_initfini_align.S
1
17
NetBSD/src:tests/lib/csu/arch/riscv/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.2 2023/08/24 05:51:55 rin Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.2 2023/08/24 05:51:55 rin Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ ENTRY_NP(check_stack_alignment) andi a0, sp, 15 seqz a0, a0 ret ...
riscv
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/riscv/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/riscv/h_initfini_align.S
1
15
NetBSD/src:tests/lib/csu/arch/riscv/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2023/05/07 12:41:49 skrll Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2023/05/07 12:41:49 skrll Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ ENTRY_NP(check_stack_alignment) andi a0, a0, 15 seqz a0, a0 ...
riscv
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/riscv/h_initfini_align.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/tests/lib/csu/arch/riscv/h_initfini_align.S
1
15
NetBSD/src:tests/lib/csu/arch/sparc/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $") _ENTRY(check_stack_alignment) and %sp, 7, %o1 retl not %o1, %o0
sparc
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/sparc/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/sparc/h_initfini_align.S
1
10
NetBSD/src:tests/lib/csu/arch/sparc64/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/11/15 20:00:20 martin Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 20:00:20 martin Exp $") _ENTRY(check_stack_alignment) add %sp, BIAS, %o1 and %o1, 15, %o2 retl not %o2, %o0
sparc
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/sparc64/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/sparc64/h_initfini_align.S
1
11
NetBSD/src:tests/lib/csu/arch/vax/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $") /* * LINTSTUB: bool check_stack_alignment(void); */ _ENTRY(check_stack_alignment, 0) clrl %r0 bitl $3,%sp bneq 1f incl %r0 1: ret END(check_...
arm64
gas-like
handwritten
NetBSD/src
tests/lib/csu/arch/vax/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/vax/h_initfini_align.S
1
17
NetBSD/src:tests/lib/csu/arch/x86_64/h_initfini_align.S:1
/* $NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $") _ENTRY(check_stack_alignment) movl %esp, %eax andl $15, %eax subl $8, %eax sete %al movzbl %al, %eax ret
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/csu/arch/x86_64/h_initfini_align.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/csu/arch/x86_64/h_initfini_align.S
1
13
NetBSD/src:tests/lib/libc/arch/aarch64/return_one.S:1
/* $NetBSD: return_one.S,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #include <machine/asm.h> ENTRY_NP(return_one) mov x0, #1 ret .globl return_one_end return_one_end: END(return_one)
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/aarch64/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/aarch64/return_one.S
1
10
NetBSD/src:tests/lib/libc/arch/alpha/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2017/12/30 16:35:03 martin Exp $ */ #include <machine/asm.h> .globl return_one, return_one_end; return_one: lda v0,1 ret return_one_end: nop
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/alpha/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/alpha/return_one.S
1
11
NetBSD/src:tests/lib/libc/arch/arm/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2014/01/26 20:42:06 matt Exp $ */ #include <machine/asm.h> ENTRY_NP(return_one) mov r0, #1 RET .align 0 .globl return_one_end return_one_end: END(return_one)
arm
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/arm/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/arm/return_one.S
1
11
NetBSD/src:tests/lib/libc/arch/hppa/return_one.S:1
/* $NetBSD: return_one.S,v 1.4 2022/05/31 07:12:15 skrll Exp $ */ #include <machine/asm.h> .globl return_one, return_one_end; return_one: bv %r0(%r2) ldi 1,%r28 return_one_end: .globl return_1, return_1_end; return_1: bv %r0(%r2) ldi 1,%r28 return_1_end: .globl return_2, return_2_end; return_2: bv %r0(%r2...
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/hppa/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/hppa/return_one.S
1
31
NetBSD/src:tests/lib/libc/arch/i386/return_one.S:1
/* $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:09 jym Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: return_one.S,v 1.1 2011/07/18 23:16:09 jym Exp $"); _ENTRY(return_one) movl $0x1,%eax ret LABEL(return_one_end)
x86
gas-att
handwritten
NetBSD/src
tests/lib/libc/arch/i386/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/i386/return_one.S
1
10
NetBSD/src:tests/lib/libc/arch/ia64/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2016/08/05 15:02:29 scole Exp $ */ #include <machine/asm.h> .globl return_one_end ENTRY(return_one,0) mov ret0=1 br.ret.sptk.few rp return_one_end: END(return_one)
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/ia64/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/ia64/return_one.S
1
11
NetBSD/src:tests/lib/libc/arch/m68k/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2019/02/10 09:54:39 mlelstv Exp $ */ #include <machine/asm.h> _ENTRY(return_one) moveq #1,%d0 rts .globl return_one_end return_one_end:
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/m68k/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/m68k/return_one.S
1
9
NetBSD/src:tests/lib/libc/arch/mips/return_one.S:1
/* $NetBSD: return_one.S,v 1.3 2021/01/21 00:56:41 simonb Exp $ */ #include <machine/asm.h> .set noreorder .globl return_one, return_one_end; return_one: jr ra li v0,1 return_one_end:
mips
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/mips/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/mips/return_one.S
1
13
NetBSD/src:tests/lib/libc/arch/or1k/return_one.S:1
/* $NetBSD: return_one.S,v 1.1 2014/09/03 19:34:26 matt Exp $ */ #include <machine/asm.h> .globl return_one, return_one_end ENTRY_NP(return_one) l.addi r11, r0, 1 l.jr lr l.nop return_one_end: END(return_one)
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/or1k/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/or1k/return_one.S
1
12
NetBSD/src:tests/lib/libc/arch/powerpc/return_one.S:1
/* $NetBSD: return_one.S,v 1.3 2015/03/29 00:38:36 matt Exp $ */ #include <machine/asm.h> .globl return_one_start, return_one_end _ENTRY(return_one) return_one_start: li %r3, 1 blr return_one_end: END(return_one)
powerpc
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/powerpc/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/powerpc/return_one.S
1
12
NetBSD/src:tests/lib/libc/arch/powerpc64/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */ #include <machine/asm.h> .globl return_one, return_one_end; return_one: li 3,1 blr return_one_end:
powerpc
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/powerpc64/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/powerpc64/return_one.S
1
10
NetBSD/src:tests/lib/libc/arch/riscv/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2015/03/28 07:07:54 matt Exp $ */ #include <machine/asm.h> .globl return_one_end ENTRY_NP(return_one) li a0, 1 ret return_one_end: END(return_one)
riscv
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/riscv/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/riscv/return_one.S
1
11
NetBSD/src:tests/lib/libc/arch/sh3/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2017/07/20 01:13:47 uwe Exp $ */ #include <machine/asm.h> NENTRY(return_one) rts mov #1, r0 SET_ENTRY_SIZE(return_one) .globl return_one_end return_one_end:
arm64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/sh3/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/sh3/return_one.S
1
10
NetBSD/src:tests/lib/libc/arch/sparc/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2018/01/14 19:59:51 martin Exp $ */ #include <machine/asm.h> .global return_one_end ENTRY(return_one) return_one: retl mov 1, %o0 return_one_end:
sparc
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/sparc/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/sparc/return_one.S
1
11
NetBSD/src:tests/lib/libc/arch/sparc64/return_one.S:1
/* $NetBSD: return_one.S,v 1.3 2021/02/08 23:50:25 joerg Exp $ */ #include <machine/asm.h> .global return_one_end ENTRY(return_one) retl mov 1, %o0 return_one_end:
sparc
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/sparc64/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/sparc64/return_one.S
1
10
NetBSD/src:tests/lib/libc/arch/vax/return_one.S:1
/* $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */ #include <machine/asm.h> .globl return_one, return_one_end; return_one: .word 0 subl2 $4,%sp movl $1,%r0 ret return_one_end:
x86_64
gas-like
handwritten
NetBSD/src
tests/lib/libc/arch/vax/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/vax/return_one.S
1
12
NetBSD/src:tests/lib/libc/arch/x86_64/return_one.S:1
/* $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:11 jym Exp $ */ #include <machine/asm.h> RCSID("$NetBSD: return_one.S,v 1.1 2011/07/18 23:16:11 jym Exp $"); _ENTRY(return_one) movq $0x1, %rax retq LABEL(return_one_end)
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libc/arch/x86_64/return_one.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libc/arch/x86_64/return_one.S
1
10
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:1
/* $NetBSD: h_io_assist_asm.S,v 1.3 2020/09/05 07:22:26 maxv Exp $ */ /* * Copyright (c) 2019-2020 Maxime Villard, m00nbsd.net * All rights reserved. * * This code is part of the NVMM hypervisor. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
1
60
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:2
.globl test11_begin, test11_end .globl test12_begin, test12_end .text .code64 #define TEST_END \ movq $0xFFFFFFFFFFFFFFFF,%rcx; \ rdmsr ; /* * IN */ .align 64 test1_begin: movq $0x1000,%rbx inb $123 movb %al,(%rbx) incq %rbx movq $123,%rdx inb %dx movb %al,(%rbx) TEST_END test1_end: .align 64 te...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
41
100
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:3
TEST_END test2_end: .align 64 test3_begin: movq $0x1000,%rbx inl $123 movl %eax,(%rbx) addq $4,%rbx movq $123,%rdx inl %dx movl %eax,(%rbx) TEST_END test3_end: .align 64 test4_begin: movq $0x1000,%rdi movq $5,%rcx movq $123,%rdx rep insb TEST_END test4_end: .align 64 test5_begin: movq $0x1000,...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
81
140
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:4
test5_end: .align 64 test6_begin: movq $0x1000,%rdi movq $7,%rcx movq $123,%rdx rep insl TEST_END test6_end: /* * OUT */ .align 64 test7_begin: movq $0x1000,%rbx movb (%rbx),%al outb $123 incq %rbx movb (%rbx),%al movq $123,%rdx outb %dx TEST_END test7_end: .align 64 test8_begin: movq $0x10...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
121
180
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:5
movw (%rbx),%ax movq $123,%rdx outw %dx TEST_END test8_end: .align 64 test9_begin: movq $0x1000,%rbx movl (%rbx),%eax outl $123 addq $4,%rbx movl (%rbx),%eax movq $123,%rdx outl %dx TEST_END test9_end: .align 64 test10_begin: movq $0x1000,%rsi movq $5,%rcx movq $123,%rdx rep outsb TEST_END te...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
161
218
NetBSD/src:tests/lib/libnvmm/h_io_assist_asm.S:6
movq $123,%rdx rep outsw TEST_END test11_end: .align 64 test12_begin: movq $0x1000,%rsi movq $7,%rcx movq $123,%rdx rep outsl TEST_END test12_end:
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_io_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_io_assist_asm.S
201
218
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:1
/* $NetBSD: h_mem_assist_asm.S,v 1.10 2020/12/27 20:56:14 reinoud Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net * All rights reserved. * * This code is part of the NVMM hypervisor. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided t...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
1
60
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:2
.globl test11_begin, test11_end .globl test12_begin, test12_end .globl test13_begin, test13_end .globl test14_begin, test14_end .globl test_64bit_15_begin, test_64bit_15_end .globl test_64bit_16_begin, test_64bit_16_end .globl test17_begin, test17_end .text .code64 #define TEST_END \ movq $0xFFFFFFFFFFFFFFFF,...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
41
100
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:3
movq $0x0400,%rcx orw %cx,(%rax) movq $0x0200,%rcx orq (%rax),%rcx movq %rcx,(%rax) TEST_END test2_end: .align 64 test3_begin: movq $0x1000,%rax movq $0x1FFF,(%rax) movq $0x1FF0,%rbx andq %rbx,(%rax) movq $0x10C1,%rcx andb %cl,(%rax) TEST_END test3_end: .align 64 test4_begin: movq $0x1000,%rax mo...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
81
140
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:4
movq $0x1FFF,(%eax) movb $0,(%eax,%ebx,1) TEST_END test5_end: .align 64 test6_begin: movq $0xFFA0,%rax movabs %rax,0x1000 movabs 0x1000,%al orb $0x0B,%al movabs %al,0x1000 TEST_END test6_end: .align 64 test7_begin: movq $0x56,%rax movq $1,%rcx movq $0x1000,%rdi rep stosb movq $0x1234,%rax stosw ...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
121
180
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:5
movw %ax,(%rdi) addq $2,%rdi lodsb movb %al,(%rdi) addq $1,%rdi lodsb movb %al,(%rdi) addq $2,%rdi TEST_END test8_end: .align 64 test9_begin: movq $0x1000,%rax movq $0x12345678,8(%rax) movq $0x1008,%rsi movq $0x1000,%rdi movq $4,%rcx rep movsb movq $2,%rcx rep movsw TEST_END test9_end: .ali...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
161
220
NetBSD/src:tests/lib/libnvmm/h_mem_assist_asm.S:6
TEST_END test10_end: .align 64 test11_begin: movq $0x1000,%rax movq $0x12345678,(%rax) movq $0xFFFFFFFFFFFFFFFF,%rbx movzwq (%rax),%rbx movq %rbx,(%rax) TEST_END test11_end: .align 64 test12_begin: movq $0x1000,%rax movq $0xFFFFFFFFF2345678,(%rax) cmpb $0x78,(%rax) jne .L12_failure cmpb $0x77,(%rax) ...
x86_64
gas-att
handwritten
NetBSD/src
tests/lib/libnvmm/h_mem_assist_asm.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/tests/lib/libnvmm/h_mem_assist_asm.S
201
260