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/stand/common/exec_image.S:3
L1: movq #0,%d0 | reg arg (unused) movq #0,%d1 | reg arg (unused) movq #0,%d2 | reg arg (unused) movq #0,%d3 | reg arg (unused) movq #0,%d4 | reg arg (unused) movq #0,%d5 | reg arg (unused) | bootdev(%d6) is already set | boothowto(%d7) is already set moval %a6,%a0 | entry moval...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/exec_image.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/exec_image.S
81
103
NetBSD/src:sys/arch/x68k/stand/common/exec_image.S:1
/* $NetBSD: exec_image.S,v 1.2 2001/09/27 14:08:28 minoura Exp $ */ /* * Copyright (c) 2001 Minoura Makoto. * 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/exec_image.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/common/exec_image.S
1
60
NetBSD/src:sys/arch/x68k/stand/common/execkern.S:1
| | execute NetBSD kernel | | written by ITOH Yasufumi | public domain | | $NetBSD: execkern.S,v 1.4 2011/02/21 02:31:58 itohy Exp $ #include <machine/asm.h> #include "execkern.h" #define MFP 0x00E88000 /* MFP */ #define MFP_IERA (MFP+0x07) /* (B) interrupt enable reg A */ #define MFP_IERB (MFP+0x09) /* (B) interrup...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/execkern.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/execkern.S
1
60
NetBSD/src:sys/arch/x68k/stand/common/execkern.S:2
addql #4,%sp moveal %sp@+,%a3 | struct execkern_arg * #endif moveal %a3@+,%a1 | load address movel %a1,%d3 | | copy image | movel #XK_NSEC-1,%d2 Lloop: moveal %a3@+,%a0 | section image address movel %a3@+,%d0 | section size movel %d0,%d1 jbsr copy movel %a3@+,%d0 | section gap jbsr clear dbra %d2...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/execkern.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/execkern.S
41
100
NetBSD/src:sys/arch/x68k/stand/common/execkern.S:3
movel %a3@+,%d5 | (reserved) movel %a3@+,%d6 | boot device movel %a3@+,%d7 | boot howto movel %a3@+,%a0 | entry address #else /* optimized */ moveml %a3@+,%d5-%d7/%a0 #endif | clear unused registers moveq #0,%d0 moveq #0,%d1 moveq #0,%d2 moveq #0,%d3 moveq #0,%d4 moveal %d0,%a1 moveal %d0,%a2 moveal ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/execkern.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/execkern.S
81
129
NetBSD/src:sys/arch/x68k/stand/common/start.S:1
|----------------------------------------------------------- | | Simple C runtime startup for Human68k | | o no stdio support (DOS/IOCS only) | o HUPAIR support | | written by ITOH Yasufumi | | This file is in the public domain | | $NetBSD: start.S,v 1.4 2024/01/07 07:58:34 isaki Exp $ #include <machine/asm.h> |-...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
1
60
NetBSD/src:sys/arch/x68k/stand/common/start.S:3
#define __FPUTS 0xFF1E #define __VERNUM 0xFF30 #define __SETBLOCK 0xFF4A #define __EXIT2 0xFF4C | | seed to estimate argument string/vector and environment vector size | (max nohupair argv[0](92+4) + NULLs(8) + alignment(3)) <- donburi? | #define estimated_argsz 107 #define estimated_com 92 /* estimated command name...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
81
140
NetBSD/src:sys/arch/x68k/stand/common/start.S:4
.even .globl _C_LABEL(main) #ifdef __ELF__ ASENTRY_NOPROFILE(_start) #else ASENTRY_NOPROFILE(start) #endif #if SUPPORT_HUPAIR .word 0x611e,0x2348,0x5550,0x4149,0x5200 #else .word 0x6016 #endif #if SUPPORT_R_EXEC .word 0x7263 #else .word 0x7863 #endif .long 0x72743020,0x56312E31,0x42206279,0x20596173,0x68610000 ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
121
180
NetBSD/src:sys/arch/x68k/stand/common/start.S:5
| addql #1,%a2 | skip byte count moveql #estimated_argsz,%d1 | byte counter moveal %a2,%a6 moveql #char_space,%d4 | space acou1: addql #1,%d1 moveb %a6@+,%d0 beqs acou2 cmpb %d4,%d0 | space beqs acous cmpb %d3,%d0 | tab (if not hupair) bnes acou1 acous: addql #4,%d1 | for argv area bras acou1 acou2...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
161
220
NetBSD/src:sys/arch/x68k/stand/common/start.S:6
| d1: estimated byte count | | free memory | and ensure the bss/stack (for .r executable) and argument areas valid | lea %a0@(pdb_mcb),%a5 | a5: PDB address subl %a5,%d1 #if SUPPORT_R_EXEC #define RELOC(sym, reg) lea sym+top_pdb,reg; addl %a5,reg moveal %a1,%a6 | end of data RELOC(_end, %a1) | end of bss #endi...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
201
260
NetBSD/src:sys/arch/x68k/stand/common/start.S:7
| loop_clrbss: clrl %a6@+ cmpal %a1,%a6 bcss loop_clrbss #endif | | save MCB address | #if NEED_MEMCP # if SUPPORT_R_EXEC RELOC(_C_LABEL(_memcp), %a6) movel %a0,%a6@ # else movel %a0,_C_LABEL(_memcp) # endif #endif | | save PDB address | #if NEED_PROCP # if SUPPORT_R_EXEC RELOC(_C_LABEL(_procp), %a6) movel %a...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
241
300
NetBSD/src:sys/arch/x68k/stand/common/start.S:8
movel %d0,_C_LABEL(_vernum) # endif #endif | | create argv[0] | moveal %a1,%a0 | top of argument strings #if SUPPORT_HUPAIR && HUPAIR_ARGV0 tstb %d3 beqs arg0lp #endif #if ADD_PATHNAME lea %a5@(drvpath_pdb),%a4 | drive and path name arg0path: moveb %a4@+,%a1@+ bnes arg0path subql #1,%a1 | remove nul char #e...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
281
340
NetBSD/src:sys/arch/x68k/stand/common/start.S:9
RELOC(_C_LABEL(__progname), %a6) movel %a4,%a6@ # else movel %a4,_C_LABEL(__progname) # endif #endif | | create argument strings | moveql #1,%d0 | (d0:l) # arg spskip: moveb %a2@+,%d2 beqs comline_end cmpb %d4,%d2 | space beqs spskip cmpb %d3,%d2 | tab (if not hupair) beqs spskip | create an arg clrb...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
321
380
NetBSD/src:sys/arch/x68k/stand/common/start.S:10
beqs arg_end cmpb %d3,%d2 | tab (if not hupair) bnes argcopyc arg_end: clrb %a1@+ bras spskip argcopyc: moveb %d2,%a1@+ | copy char argnextc: moveb %a2@+,%d2 bnes arglp clrb %a1@+ comline_end: | | create argv vector | addql #3,%a1 movel %a1,%d1 andib #0xfc,%d1 | long alignment moveal %d1,%a1 | arg...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
361
420
NetBSD/src:sys/arch/x68k/stand/common/start.S:11
| create envp vector | #if NEED_ENVIRON movel %a1,%d2 envlp: tstb %a3@ beqs envend movel %a3,%a1@+ envskp: tstb %a3@+ bnes envskp bras envlp envend: clrl %a1@+ | NULL termination # if SUPPORT_R_EXEC RELOC(_C_LABEL(environ), %a0) movel %d2,%a0@ # else movel %d2,_C_LABEL(environ) # endif #endif | | free unused...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
401
460
NetBSD/src:sys/arch/x68k/stand/common/start.S:12
#endif #if SUPPORT_R_EXEC RELOC(_C_LABEL(main), %a0) jsr %a0@ #else jsr _C_LABEL(main) #endif #if !C_REGPARM || NEED_ENVIRON movew %d0,%a7@ #else movew %d0,%a7@- #endif DOS(__EXIT2) #if !defined(__ELF__) && DUMMY___main ENTRY_NOPROFILE(__main) rts #endif |-----------------------------------------------------...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
441
497
NetBSD/src:sys/arch/x68k/stand/common/start.S:13
#if NEED_ENVIRON .comm _C_LABEL(environ),4 | environ address #endif |----------------------------------------------------------- | | stack | #ifdef __ELF__ .section .stack,"aw",@nobits .align 4 STACK_SYMBOL: .space STACK_SIZE #else .comm STACK_SYMBOL,STACK_SIZE #endif
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/start.S
481
497
NetBSD/src:sys/arch/x68k/stand/common/start.S:1
|----------------------------------------------------------- | | Simple C runtime startup for Human68k | | o no stdio support (DOS/IOCS only) | o HUPAIR support | | written by ITOH Yasufumi | | This file is in the public domain | | $NetBSD: start.S,v 1.3 2011/02/21 02:31:58 itohy Exp $ #include <machine/asm.h> |-...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/start.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/common/start.S
1
60
NetBSD/src:sys/arch/x68k/stand/libdos/dos_cerror.S:1
| Writes Human68k DOS error number to dos_errno. | Called on errors of DOS calls. | | written by ITOH Yasufumi | public domain | | $NetBSD: dos_cerror.S,v 1.2 2011/02/21 02:31:59 itohy Exp $ #include "dos_asm.h" #include "dos_errno.h" ASENTRY_NOPROFILE(CERROR) movel %d0,%sp@- negl %d0 cmpil #_DOS_EEXIST,%d0 bnes...
arm
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libdos/dos_cerror.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libdos/dos_cerror.S
1
21
NetBSD/src:sys/arch/x68k/stand/libdos/dos_procerr.S:1
| Writes Human68k DOS process error number to dos_errno. | Called on errors of DOS calls for processes. | | written by ITOH Yasufumi | public domain | | $NetBSD: dos_procerr.S,v 1.2 2011/02/21 02:31:59 itohy Exp $ #include "dos_asm.h" #include "dos_errno.h" ASENTRY_NOPROFILE(PRCERROR) movel %d0,%sp@- cmpil #0xffff...
arm
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libdos/dos_procerr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libdos/dos_procerr.S
1
32
NetBSD/src:sys/arch/x68k/stand/libdos/dos_rename.S:1
| XC compatible RENAME() function | int DOS_RENAME __P((const char *path, const char *newname)); | | written by ITOH Yasufumi | public domain | | $NetBSD: dos_rename.S,v 1.3 2011/02/21 02:31:59 itohy Exp $ #include "dos_asm.h" Lbufsz = 92 | sizeof(struct dos_nameckbuf) Lnamoff = 67 | offsetof(struct dos_nameckbuf, na...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libdos/dos_rename.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libdos/dos_rename.S
1
60
NetBSD/src:sys/arch/x68k/stand/libdos/dos_rename.S:2
| add new name lea %sp@(8 + Lbufsz+Lnamoff),%a0 | new name (8: args on stack) Lname: moveb %a0@+,%a1@+ bnes Lname subql #1,%a1 | remove nul char | add new extension lea %sp@(8 + Lbufsz+Lextoff),%a0 | new ext (8: args on stack) Lext: moveb %a0@+,%a1@+ bnes Lext | we already have the arguments on stack bsr _...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libdos/dos_rename.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libdos/dos_rename.S
41
61
NetBSD/src:sys/arch/x68k/stand/libsa/Makefile.inc:1
# $NetBSD: Makefile.inc,v 1.2 2012/10/12 20:15:52 tsutsui Exp $ # MD libsa files .PATH.c: ${SA_EXTRADIR} .PATH.S: ${SA_EXTRADIR} SRCS+= consio.c devopen.c parseutils.c sdcd.c fd.c fdsub.S chdsk.c SRCS+= putimage.S # network support SRCS+= clock.c SRCS+= dev_net.c
riscv
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/Makefile.inc
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/Makefile.inc
1
13
NetBSD/src:sys/arch/x68k/stand/libsa/fdsub.S:1
/* $NetBSD: fdsub.S,v 1.2 2024/01/07 07:58:34 isaki Exp $ */ /* * Copyright (c) 2001 MINOURA Makoto. * 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 m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/fdsub.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/fdsub.S
1
60
NetBSD/src:sys/arch/x68k/stand/libsa/fdsub.S:2
|| movl %sp@(4),%d1 || andil #3,%d1 || orib #0x90,%d1 || lslw #8,%d1 || movql #0,%d2 || IOCS(__B_DRVCHK) || btst.b #1,%d0 || beq fail || IOCS(__B_RECALI) moveml %sp@(4),%d0-%d1 andil #1,%d1 andil #3,%d0 lslw #2,%d1 orw %d1,%d0 jbsr check_fd_format tstl %d1 beq fail1 moval %sp@(12),%a0 moveml %d0-%d1,%a0@ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/fdsub.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/fdsub.S
41
76
NetBSD/src:sys/arch/x68k/stand/libsa/fdsub.S:1
/* $NetBSD: fdsub.S,v 1.1 2001/09/27 10:03:28 minoura Exp $ */ /* * Copyright (c) 2001 MINOURA Makoto. * 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/fdsub.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/libsa/fdsub.S
1
60
NetBSD/src:sys/arch/x68k/stand/libsa/putimage.S:1
| file: putimage.S | author: ITOH Yasufumi | | $NetBSD: putimage.S,v 1.5 2012/11/25 04:06:59 isaki Exp $ #include <machine/asm.h> #include "iocscall.h" # define IMGWIDTH 56 # define IMGHEIGHT 52 | | display title image | ENTRY_NOPROFILE(put_image) link %a6,#-(IMGWIDTH*IMGHEIGHT/8*2+8)| make local buffer moveal %s...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/putimage.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/putimage.S
1
60
NetBSD/src:sys/arch/x68k/stand/libsa/putimage.S:2
| d7.b: size count | a0: input data pointer Lrunlen: | a run entry: | value (2bit) | length-1 (3bit) subqb #5,%d2 | have enough bits? jcc Lhave5b | yes | fill byte cmpaw %a0,%a3 | the register order is significant | for word comparison beq Lrxabort 1: moveb %a0@+,%d0 addqb #8,%d2 | d2: 3: ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/putimage.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/putimage.S
41
100
NetBSD/src:sys/arch/x68k/stand/libsa/putimage.S:3
moveq #2,%d1 movew %a2@,%d2 IOCS(__TPALET2) | moveq #0x02,%d1 | plane 1 (already have it) IOCS(__TCOLOR) movel %a6@(8),%d1 movel %a6@(12),%d2 IOCS(__TEXTPUT) moveq #0x01,%d1 | plane 0 IOCS(__TCOLOR) movel %a6@(8),%d1 lea %a6@(-(IMGWIDTH*IMGHEIGHT/8*2+8)),%a1 IOCS(__TEXTPUT) Lrxabort: moveml %sp...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/putimage.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/putimage.S
81
140
NetBSD/src:sys/arch/x68k/stand/libsa/putimage.S:4
.word 0x5295,0xAD6A | palet1, palet2 .word 0x39c3,0x0c1c,0xd039,0xce71,0xa327,0x3830,0x739c,0xe146 .word 0x6073,0x8227,0x39ce,0x0865,0x0738,0x2184,0x1ce7,0x3233 .word 0x049c,0xe88a,0x0e73,0x9618,0x8271,0x0486,0x6646,0x2093 .word 0x9ce4,0xcc12,0x1461,0x1622,0x3104,0x9ce7,0x2653,0x10e2 .word 0x4158,0x91a8,0x24e7,0x...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/libsa/putimage.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/libsa/putimage.S
121
160
NetBSD/src:sys/arch/x68k/stand/loadbsd/trampoline.S:1
| | copy binary image and execute | | written by ITOH Yasufumi | public domain | | $NetBSD: trampoline.S,v 1.3 2011/02/21 02:31:59 itohy Exp $ #include <machine/asm.h> #include "trampoline.h" | arg+0 bsr trampoline | +4 %a3+0 temporary stack address | +8 %a3+4 processor type | +12 %a3+8 struct execkern_arg | +52 ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/loadbsd/trampoline.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/loadbsd/trampoline.S
1
60
NetBSD/src:sys/arch/x68k/stand/loadbsd/trampoline.S:2
bras Lmmudone Lmmu030: | 020/030 clrl %sp@- .long 0xF0174000 | pmove %sp@,%tc cmpl %d0,%d2 bnes Lmmu020 | 68851 has no tt regs .long 0xF0170800 | pmove %sp@,%tt0 .long 0xF0170C00 | pmove %sp@,%tt1 Lmmu020: movel #0x7fff0001,%sp@- | null root pointer .long 0xF0174C00 | pmove %sp@,%crp .long 0xF0174800 |...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/loadbsd/trampoline.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/loadbsd/trampoline.S
41
69
NetBSD/src:sys/arch/x68k/stand/mboot/srt0.S:1
/* $NetBSD: srt0.S,v 1.4 2024/01/07 07:58:34 isaki Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Minoura Makoto. * * Redistribution and use in source and binary forms, with or without * modif...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/mboot/srt0.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/mboot/srt0.S
1
46
NetBSD/src:sys/arch/x68k/stand/mboot/srt0.S:1
/* $NetBSD: srt0.S,v 1.3 2008/04/28 20:23:40 martin Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Minoura Makoto. * * Redistribution and use in source and binary forms, with or without * modi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/mboot/srt0.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/mboot/srt0.S
1
46
NetBSD/src:sys/arch/x68k/stand/xxboot/ashldi3.S:1
/* $NetBSD: ashldi3.S,v 1.3 2020/08/22 10:12:29 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashldi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashldi3.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/ashldi3.S:2
addxl %d0,%d0 | %d0:X <<= 1 start: subql #1,%a0 | sub %a0 doesn't affect ccr, tstl %a0 | but this extra TST op is | smaller than push/pop %d2. jpl loop rts #if defined(SELFTEST) #include "iocscall.h" .macro PRINT msg leal \msg,%a1 IOCS(__B_PRINT) .endm .macro TEST name leal \name,%a...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashldi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashldi3.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/ashldi3.S:3
cmpl %a2@+,%d0 | compare high word jne fail cmpl %a2@+,%d1 | compare low word jne fail PRINT %pc@(msg_ok) rts fail: PRINT %pc@(msg_fail) rts test0: | count = 0 .long 0x11223344, 0x55667788 .long 0 .long 0x11223344, 0x55667788 test1: | count = 1 .long 0x11223344, 0x55667788 .long 1 .long ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashldi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashldi3.S
81
121
NetBSD/src:sys/arch/x68k/stand/xxboot/ashrdi3.S:1
/* $NetBSD: ashrdi3.S,v 1.1 2020/08/16 06:43:43 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashrdi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashrdi3.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/ashrdi3.S:2
roxrl #1,%d1 | X:%d1 >>= 1 start: subql #1,%a0 | sub %a0 doesn't affect ccr, tstl %a0 | but this extra TST op is | smaller than push/pop %d2. jpl loop rts #if defined(SELFTEST) #include "iocscall.h" .macro PRINT msg leal \msg,%a1 IOCS(__B_PRINT) .endm .macro TEST name leal \name,%a2...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashrdi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashrdi3.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/ashrdi3.S:3
moveml %d0-%d2,%sp@- jbsr __ashrdi3 leal %sp@(12),%sp cmpl %a2@+,%d0 | compare high word jne fail cmpl %a2@+,%d1 | compare low word jne fail PRINT %pc@(msg_ok) rts fail: PRINT %pc@(msg_fail) rts test0: | count = 0 .long 0x11223344, 0x55667788 .long 0 .long 0x11223344, 0x55667788 test1p: ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashrdi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashrdi3.S
81
139
NetBSD/src:sys/arch/x68k/stand/xxboot/ashrdi3.S:4
.long 0x41223344, 0x55667788 .long 63 .long 0x00000000, 0x00000000 test63m: | count = 63 (negative value) .long 0x91223344, 0x55667788 .long 63 .long 0xffffffff, 0xffffffff msg_testname: .asciz "__ashrdi3" msg_ok: .asciz " ok" msg_fail: .asciz " fail" msg_crlf: .asciz "\r\n" #endif
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/ashrdi3.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/ashrdi3.S
121
139
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:1
| $NetBSD: boot.S,v 1.13 2020/08/16 06:43:43 isaki Exp $ | | (1) IPL (or previous stage loader) loads first 1KB of this primary | bootloader to (*). (*) is 0x2000 (from FD) or 0x2400 (from SASI/SCSI). | | (2) The first 1KB loads full primary bootloader (including first 1KB) from | the boot partition to 0x3000...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:2
| (because this loader is assembled as starting from 0x3000 but is loaded | at 0x2000 or 0x2400). | - must use RELOC() macro to access bss section (and first_kbyte as a jump | destination address). | | The program code after first_kbyte can access any labels in all sections | directly. #include <machine/asm.h> #...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:3
.ascii "\r\n\n" | 3 .ascii PROG | 14 .asciz ": " | 2+1 .org msg_progname + 20 entry: jbra disklabel_end | Disklabel must be placed at 0x40 and the size is 404 bytes. | (See LABELOFFSET in <machine/disklabel.h>) .org 0x40 disklabel: .space 404 disklabel_end: | At first save all initial registers ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
81
140
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:4
clrbss: | see chkmpu below clrb %a1@+ dbra %d0,clrbss | If it boots from SCSI, %d4 has SCSI ID. movel %d4,RELOC(SCSI_ID) chkmpu: | Check MPU beforehand since we want to use 68020 instructions. | Here the above "subw %a1,%d0" = 0x9049 and %d0.w = -1 at this | point, so that subsequent moveb loads ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
121
180
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:5
cmpiw #0x90,%d0 jlt boot_dev_not_supp | SASI | | Boot from floppy | boot_floppy: | Make PDA+MODE lslw #8,%d0 | %d0=$00009X00 (X is unit#) moveql #0x70,%d1 orw %d0,%d1 | %d1=$00009X70 = (PDA<<8)+MODE movel %d1,RELOC(FDMODE) check_fd_format: | Check fd format. | Obtain min & max sector # of tra...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
161
220
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:6
cmpl %d5,%d2 | if (%d2 > %d5) jle 1f | movel %d2,%d5 | max = %d2 1: cmpl %d3,%d2 | if (%d2 == %d3) break jne loop | Assume 2HD oriw #0x0100,%d5 | FDSEC.maxsec.H = 1 moveml %d4-%d5,RELOC(FDSEC) | Store | end of check_fd_format | read 8KB myself from floppy | %d1: (PDA<<8)+MODE already...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
201
260
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:7
lsrl #2,%d0 | %d0 = blocksize in longword moveql #25,%d5 bfffo %d0{#0:#32},%d1 | 25:256 24:512 23:1024 22:2048 subl %d1,%d5 | 0:256 1:512 2:1024 3:2048 movel %d5,RELOC(SCSI_BLKLEN) | %d5 = sector length index | Find out the start position of the boot partition. | There seems to be no interface or ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
241
300
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:8
divul %d0,%d3 | %d0 = TDSIZE in sector | Read full primary bootloader moveal %a5,%a1 | %a1 = dest buffer jbsr scsiread | Selected start sector should not <= 4. There should be | partition table. If so, repoints to zero(?). moveql #5,%d0 cmpl %d0,%d2 bcc 1f moveql #0,%d2 1: movel %d2,RELOC(SCS...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
281
340
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:9
movel %d2,%d0 addl %d3,%d0 | %d0 = pos + len jcs scsiread_core | if overflow, use READEXT bftst %d0{#0:#11} | if (pos + len >= 0x200000) jne scsiread_core | use REAEXT moveql #__S_READ,%d1 | else use READ scsiread_core: IOCS(__SCSIDRV) rts boot_dev_not_supp: BOOT_ERROR("not supported device"); ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
321
380
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:10
| NOTREACHED msg_reboot: .asciz "\r\n[Hit key to reboot]" .even .globl first_kbyte first_kbyte: |-------------------------------------------------------------------------- | #if defined(SELFTEST) jbsr selftest_ashldi3 jbsr selftest_ashrdi3 jbsr selftest_memcmp jbsr selftest_memmove jbsr selftest_memset...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
361
420
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:11
| | int raw_read(uint32_t blkpos, uint32_t bytelen, void *buf) | blkpos: read start position in 512 byte block unit (always?). | bytelen: read length in bytes. | caller already avoids bytelen == 0 so that no checks here. | must be a multiple of sector size on scsi. | buf: destination buffer addre...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
401
460
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:12
rts raw_read_floppy: | nhead = FDSEC.maxsec.H - FDSEC.minsec.H + 1 | = 2; | nsect = FDSEC.maxsec.R - FDSEC.minsec.R + 1; | | sect = (blkpos % nsect) + FDSEC.minsec.R; | head = ((blkpos / nsect) % nhead) + FDSEC.minsec.H; | cyl = ((blkpos / nsect) / nhead) + FDSEC.minsec.C; | | NCHR = (FDSEC.mi...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
441
500
NetBSD/src:sys/arch/x68k/stand/xxboot/boot.S:13
movel %pc@(FDMODE),%d1 | %d1 = PDA+MODE IOCS(__B_READ) andil #0xf8ffff00,%d0 | Check status (must be zero) jeq raw_read_exit BOOT_ERROR("B_READ failed"); | | BSS | BSS(BOOT_INFO, 4) | whole result of IOCS BOOTINF BSS(FDMODE, 4) BSS(FDSEC, 8) | +0: (minN) sector length | +1: (minC) track number ...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/xxboot/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/boot.S
481
509
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:1
/* $NetBSD: memcmp.S,v 1.2 2024/01/07 07:58:34 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcmp.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:2
| %a0: b2 | %a1: len exg %d1,%a1 | %d1: len | %a0: b2 | %a1: b1 moveql #0,%d0 loop: subql #1,%d1 | if (--len < 0) jcs exit | goto exit compare: cmpmb %a0@+,%a1@+ jeq loop | To comply with standards, recalc exact return value. | Although everyone expects only 0 or not... moveq...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcmp.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:3
TEST test2 TEST test3 TEST test4 TEST test5 PRINT %pc@(msg_crlf) moveml %sp@+,%d2-%d7/%a2-%a6 rts test: movel %a2@+,buf:W | contents of b1 movel %a2@+,(buf+4):W | contents of b2 movel %a2@+,%sp@- | push len peal (buf+4):W | push b2 peal (buf):W | push b1 jbsr memcmp leal %sp@(12),%sp ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcmp.S
81
140
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:4
test3: | b1 < b2 in the last byte .long 0x11220044 | b1 .long 0x11220144 | b2 .long 3 | len .long -1 | expected test4: | len == 0 .long 0x11223344 | b1 .long 0x11223344 | b2 .long 0 | len .long 0 | expected test5: | *b1 - *b2 = 0 - 255 = -255 .long 0x00000000 | b1 .long 0xff000000...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcmp.S
121
150
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:1
/* $NetBSD: memcmp.S,v 1.1 2020/08/16 06:43:43 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/xxboot/memcmp.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/memcmp.S:3
TEST test2 TEST test3 TEST test4 TEST test5 PRINT %pc@(msg_crlf) moveml %sp@+,%d2-%d7/%a2-%a6 rts test: movel %a2@+,buf:W | contents of b1 movel %a2@+,(buf+4):W | contents of b2 movel %a2@+,%sp@- | push len peal (buf+4):W | push b2 peal (buf):W | push b1 jbsr memcmp leal %sp@(12),%sp ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcmp.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/xxboot/memcmp.S
81
140
NetBSD/src:sys/arch/x68k/stand/xxboot/memcpy.S:1
/* $NetBSD: memcpy.S,v 1.1 2020/08/16 06:43:43 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcpy.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcpy.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/memcpy.S:2
| %a0: dst | %a1: count jbra memmove_common | | void *memcpy(void *dst, const void *src, size_t count); | void *memmove(void *dst, const void *src, size_t count); | ASENTRY_NOPROFILE(memcpy) ASENTRY_NOPROFILE(memmove) moveml %sp@,%d0-%d1/%a0-%a1 | %d0: (return address) | %d1: dst | %a0: src ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcpy.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcpy.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/memcpy.S:3
jcc loop | goto exit exit: rts | %a0 holds return value (=dst) #if defined(SELFTEST) #include "iocscall.h" .macro PRINT msg leal \msg,%a1 IOCS(__B_PRINT) .endm .macro TEST name leal \name,%a2 jbsr test .endm ASENTRY_NOPROFILE(selftest_memmove) moveml %d2-%d7/%a2-%a6,%sp@- PRINT %pc@(msg_...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcpy.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcpy.S
81
140
NetBSD/src:sys/arch/x68k/stand/xxboot/memcpy.S:4
cmpal %a3,%a0 | compare return value jne fail movel %a2@+,%d0 | compare buf[0..3] cmpl buf:W,%d0 jne fail movew %a2@+,%d0 | compare buf[4..5] cmpw (buf+4):W,%d0 | compare buf[4..5] jne fail PRINT %pc@(msg_ok) rts fail: PRINT %pc@(msg_fail) rts test1: | src=buf+1: 1 2 3 4 5 6 | ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcpy.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcpy.S
121
180
NetBSD/src:sys/arch/x68k/stand/xxboot/memcpy.S:5
.byte 1, 2, 3, 4, 5, 6 | expected buf test4: | len == 0 .byte 1, 2, 3, 4, 5, 6 | initial buf .long 0 | len .long buf+1 | src .long buf+1 | dst .byte 1, 2, 3, 4, 5, 6 | expected buf msg_testname: .asciz "memmove" msg_ok: .asciz " ok" msg_fail: .asciz " fail" msg_crlf: .asciz "\r\n" BSS(buf...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memcpy.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memcpy.S
161
181
NetBSD/src:sys/arch/x68k/stand/xxboot/memset.S:1
/* $NetBSD: memset.S,v 1.1 2020/08/16 06:43:43 isaki Exp $ */ /* * Copyright (C) 2020 Tetsuya Isaki. All rights reserved. * Copyright (C) 2020 Y.Sugahara (moveccr). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memset.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memset.S
1
60
NetBSD/src:sys/arch/x68k/stand/xxboot/memset.S:2
| %a1: len subal %a0,%a0 | %a0: c = 0 jbra memset_common | | void *memset(void *dst, int c, size_t len); | ASENTRY_NOPROFILE(memset) moveml %sp@,%d0-%d1/%a0-%a1 | %d0: (return address) | %d1: dst | %a0: c | %a1: len memset_common: addal %d1,%a1 | %a1: loop start+1 address exg %d1,%a0 ...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memset.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memset.S
41
100
NetBSD/src:sys/arch/x68k/stand/xxboot/memset.S:3
ASENTRY_NOPROFILE(selftest_memset) moveml %d2-%d7/%a2-%a6,%sp@- PRINT %pc@(msg_testname) TEST test1 TEST test2 PRINT %pc@(msg_crlf) moveml %sp@+,%d2-%d7/%a2-%a6 rts test: movel %a2@+,buf:W | initial contents of buffer movel %a2@+,%sp@- | push len movel %a2@+,%sp@- | push c movel %a2@+,%a3 |...
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memset.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memset.S
81
138
NetBSD/src:sys/arch/x68k/stand/xxboot/memset.S:4
| len == 0 .long 0x11223344 | initial buf .long 0 | len .long 0x55 | c .long buf+1 | dst .long 0x11223344 | expected buf msg_testname: .asciz "memset" msg_ok: .asciz " ok" msg_fail: .asciz " fail" msg_crlf: .asciz "\r\n" BSS(buf, 8) #endif
arm64
gas-like
macro-heavy
NetBSD/src
sys/arch/x68k/stand/xxboot/memset.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/xxboot/memset.S
121
138
NetBSD/src:sys/arch/x68k/x68k/locore.s:3
* table and is hence at 0x400 (see reset vector in vectors.s). */ PANIC("kernel jump to zero") /* NOTREACHED */ /* * Macro to relocate a symbol, used before MMU is enabled. */ #define IMMEDIATE # #define _RELOC(var, ar) \ movl IMMEDIATE var,ar; \ addl %a5,ar #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
81
140
NetBSD/src:sys/arch/x68k/x68k/locore.s:4
movel %sp@,%a4 | esym RELOC(vectab,%a0) | set Vector Base Register temporarily movc %a0,%vbr #if 0 /* XXX this should be done by the boot loader */ RELOC(edata, %a0) | clear out BSS movl #_C_LABEL(end)-4,%d0 | (must be <= 256 kB) subl #_C_LABEL(edata),%d0 lsrl #2,%d0 1: clrl %a0@+ dbra %d0,1b #endif ASREL...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
121
180
NetBSD/src:sys/arch/x68k/x68k/locore.s:5
bset #31,%d0 | data cache enable bit movc %d0,%cacr | only exists on 68040/68060 movc %cacr,%d0 | read it back tstl %d0 | zero? jeq Lis68020 | yes, we have 68020 moveq #0,%d0 | now turn it back off movec %d0,%cacr | before we access any data .word 0xf4d8 | cinva bc - invalidate caches XXX bset #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
161
220
NetBSD/src:sys/arch/x68k/x68k/locore.s:6
RELOC(physmem, %a0) movl %d1,%a0@ | and physmem /* configure kernel and lwp0 VA space so we can get going */ #if NKSYMS || defined(DDB) || defined(MODULAR) RELOC(esym,%a0) | end of static kernel test/data/syms movl %a0@,%a4 tstl %a4 jne Lstart3 #endif movl #_C_LABEL(end),%a4 | end of static kernel text/data L...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
201
260
NetBSD/src:sys/arch/x68k/x68k/locore.s:7
jra Lstploaddone Lmotommu1: RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,%srp | load the supervisor root pointer Lstploaddone: RELOC(mmutype, %a0) cmpl #MMU_68040,%a0@ | 68040? jne Lmotommu2 | no, skip #include "opt_jupiter.h" #ifdef JUPITER /* JUPITER-X: set system register "SUPER" bit...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
241
300
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(machine_init) | additional pre-main initialization addql #4,%sp jra _C_LABEL(main) | main() (never returns) /* * Provide a generic interrupt dispatcher, only handle hardclock (int6) * specially, to improve performance */ ENTRY_NOPROFILE(spurintr) /* level...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded to longword jbsr _C_LABEL(intrhand) | handle interrupt addql #4,%sp | pop SR CPUI...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
/* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that is mapped one-to-one * logical to physical so th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
#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 jmp %a0@ | reboot X680x0 Lebootcode: /* * Misc. global variables. */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
441
491
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
.asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/x68k/locore.s
481
491
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded to longword jbsr _C_LABEL(intrhand) | handle interrupt addql #4,%sp | pop SR CPUI...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
7cf7e2ce951dd3068008f7bf6ed90839cb01f724
github
kernel
https://github.com/NetBSD/src/blob/7cf7e2ce951dd3068008f7bf6ed90839cb01f724/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
/* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that is mapped one-to-one * logical to physical so th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
7cf7e2ce951dd3068008f7bf6ed90839cb01f724
github
kernel
https://github.com/NetBSD/src/blob/7cf7e2ce951dd3068008f7bf6ed90839cb01f724/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp jra _C_LABEL(main) | main() (never returns) /* * Provide a generic interrupt dispatcher, only handle hardclock (int6) * specially, to improve performance */ ENTRY_NOPROFILE(spurintr) /* level 0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded to longword jbsr _C_LABEL(intrhand) | handle interrupt addql #4,%sp | pop SR CPUI...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
/* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #include <m68k/m68k/switch_subr.s> /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
| ok, turn off MMU.. Ldoreboot: #if defined(M68040) || defined(M68060) tstl %d2 | 68040? jne LmotommuF | no, skip movc %a1,%cacr | caches off .long 0x4e7b9003 | movc a1(=0),tc ; disable MMU jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
.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) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(ein...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/x68k/x68k/locore.s
481
505
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded to longword jbsr _C_LABEL(intrhand) | handle interrupt addql #4,%sp | pop SR CPUI...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
/* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> /* * Handle the nitty-gritty of rebooting the machine. * Basically...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
| ok, turn off MMU.. Ldoreboot: #if defined(M68040) || defined(M68060) tstl %d2 | 68040? jne LmotommuF | no, skip movc %a1,%cacr | caches off .long 0x4e7b9003 | movc a1(=0),tc ; disable MMU jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
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) .long 0,0,0,0,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/x68k/x68k/locore.s
481
506
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded to longword jbsr _C_LABEL(intrhand) | handle interrupt addql #4,%sp | pop SR CPUI...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
/* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> /* * _delay(u_int N) * * Delay for at least N microseconds. * Th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
* is turned off. We have conveniently mapped the last page of physical * memory this way. */ ENTRY_NOPROFILE(doboot) movw #PSL_HIGHIPL,%sr | cut off any interrupts subal %a1,%a1 | a1 = 0 movl #CACHE_OFF,%d0 #if defined(M68040) || defined(M68060) movl _C_LABEL(mmutype),%d2 | d2 = mmutype addl #(-1 * MMU_68040...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
* Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68030 | default to 030 internal MMU GLOBAL(cputype) .long CPU_68030 | default to 68030 CPU #ifdef M68K_MMU_HP GLOBAL(ectype) .long EC_NONE | external cache type, default to none #endif GLOBAL(intiobase) .long 0 | KVA of base of internal IO spac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/x68k/x68k/locore.s
481
524
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp jra _C_LABEL(main) | main() (never returns) /* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment. */ /* * Trace (single-step) trap. Kernel...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 movw %sp@(FR_HW),%d1 | get PSW andw #PSL_S,%d1 | from system mode? jne Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fault Lkbrkpt: | Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PS...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kgdb_trap) | handle the trap addql #8,%sp | pop args 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_LA...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
401
460