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/virt68k/virt68k/locore.s:16
clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040 /* ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/virt68k/virt68k/locore.s
601
645
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
* necessitating a stack cleanup. */ ASENTRY_NOPROFILE(rei) tstl _C_LABEL(astpending) | AST pending? jeq Ldorte | Nope. Just return. btst #5,%sp@ | Returning to kernel mode? jne Ldorte | Yup. Can't do ASTs movw #PSL_LOWIPL,%sr | lower SPL clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all regist...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f238db949cee2629a8711612b3aee42da1acc678
github
kernel
https://github.com/NetBSD/src/blob/f238db949cee2629a8711612b3aee42da1acc678/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
*/ #include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f238db949cee2629a8711612b3aee42da1acc678
github
kernel
https://github.com/NetBSD/src/blob/f238db949cee2629a8711612b3aee42da1acc678/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_6804...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f238db949cee2629a8711612b3aee42da1acc678
github
kernel
https://github.com/NetBSD/src/blob/f238db949cee2629a8711612b3aee42da1acc678/sys/arch/virt68k/virt68k/locore.s
601
650
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
.asciz "clock" .asciz "lev6" .asciz "nmi" .asciz "statclock" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f238db949cee2629a8711612b3aee42da1acc678
github
kernel
https://github.com/NetBSD/src/blob/f238db949cee2629a8711612b3aee42da1acc678/sys/arch/virt68k/virt68k/locore.s
641
650
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
lea var,ar #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) #define ASRELOC(var, ar) _RELOC(_ASM_LABEL(var), ar) BSS(esym,4) .globl _C_LABEL(edata) .globl _C_LABEL(etext),_C_LABEL(end) /* * This is for kvm_mkdb, and should be the address of the beginning * of the kernel text segment (not necessarily the same a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
RELOC(bootinfo_start,%a0) movl #_C_LABEL(end),%sp@- jbsr %a0@ | bootinfo_start(end) addql #4,%sp /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%cacr | clear and disable on-chip cache(s) /* XXX XXX XXX */ /* * bootinfo_start() will have determined what kind of CPU * we have, so it's time to fix up the ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
/* initialize source/destination control registers for movs */ moveq #FC_USERD,%d0 | user space movc %d0,%sfc | as source movc %d0,%dfc | and destination of transfers /* * bootinfo_start() recorded the first PA following the * bootinfo in bootinfo_end. That represents the end of * the loaded image. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
Lstploaddone: RELOC(mmutype, %a0) cmpl #MMU_68040,%a0@ | 68040? jne Lmotommu2 | no, skip movl #VIRT68K_TT40_IO,%d0 | DTT0 maps the I/O space .long 0x4e7b0006 | movc d0,dtt0 moveq #0,%d0 | ensure the other TT regs are disabled .long 0x4e7b0004 | movc d0,itt0 .long 0x4e7b0005 | movc d0,itt1 .long 0x4e7b...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
Lenab1: /* Point the CPU VBR at our vector table */ movl #_C_LABEL(vectab),%d0 | get our VBR address movc %d0,%vbr lea _ASM_LABEL(tmpstk),%sp | temporary stack /* call final pmap setup */ jbsr _C_LABEL(pmap_bootstrap_finalize) /* set kernel stack, user SP */ movl _C_LABEL(lwp0uarea),%a1 | get lwp0 uarea lea %a1@(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
*/ movw #PSL_LOWIPL,%sr | lower SPL #endif clrw %sp@- | vector offset/frame type clrl %sp@- | PC - filled in by "execve" movw #PSL_USER,%sp@- | in user mode clrl %sp@- | stack adjust count and padding lea %sp@(-64),%sp | construct space for D0-D7/A0-A7 lea _C_LABEL(lwp0),%a0 | save pointer to frame mov...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
Lfp_unimp: #endif /* M68040 */ jra _C_LABEL(illinst) ENTRY_NOPROFILE(fpunsupp) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unsupp | No, skip FPSP #ifdef FPSP jmp _ASM_LABEL(fpsp_unsupp) | yes, go handle it #else clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save regist...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
tstb %a0@ | null state frame? jeq Lfptnull | yes, safe clrw %d0 | no, need to tweak BIU movb %a0@(1),%d0 | get frame size bset #3,%a0@(0,%d0:w) | set exc_pend bit of BIU Lfptnull: fmovem %fpsr,%sp@- | push fpsr as code argument frestore %a0@ | restore state movl #T_FPERR,%sp@- | push type arg jra _ASM_LABEL(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
addql #8,%sp | pop SP and stack adjust rte /* * Trap 12 is the entry point for the cachectl "syscall" (both HPUX & BSD) * cachectl(command, addr, length) * command in d0, addr in a1, length in d1 */ ENTRY_NOPROFILE(trap12) movl _C_LABEL(curlwp),%a0 movl %a0@(L_PROC),%sp@- | push current proc pointer movl %d1...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
* Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ ENTRY_NOPROFILE(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 movw...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
| the trap type is either T_TRACE or T_BREAKPOINT. | If we have both DDB and KGDB, let KGDB see it first, | because KGDB will just return 0 if not connected. | Save args in d2, a2 movl %d0,%d2 | trap type movl %sp,%a2 | frame ptr #ifdef KGDB | Let KGDB handle it (if connected) movl %a2,%sp@- | push frame pt...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
*/ #include <m68k/m68k/sigreturn.s> /* * Interrupt handlers. * * For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG lea %sp@(16),...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
jne Ldorte | Yup. Can't do ASTs movw #PSL_LOWIPL,%sr | lower SPL clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl %usp,%a1 | including movl %a1,%sp@(FR_SP) | the users SP Lrei1: clrl %sp@- | VA == none clrl %sp@- | code == none movl #T_ASTFLT,%sp@- | type == async system t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
/* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040 /* * interrupt counters. * XXXSCW: Will go away...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/virt68k/virt68k/locore.s
641
684
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
/* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(getsr) moveq #0,%d0 movw %sr,%d0 rts /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040 /*...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/virt68k/virt68k/locore.s
641
689
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
/* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
8050dcbaaa0d252649771156d21387cf64f1c298
github
kernel
https://github.com/NetBSD/src/blob/8050dcbaaa0d252649771156d21387cf64f1c298/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work because callee saved registers may be outside the stack frame * defined by A6 (e.g. GCC generated code). */ ENTRY_NOPROFILE(getsp) m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
8050dcbaaa0d252649771156d21387cf64f1c298
github
kernel
https://github.com/NetBSD/src/blob/8050dcbaaa0d252649771156d21387cf64f1c298/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
/* * interrupt counters. * XXXSCW: Will go away soon; kept here to keep vmstat happy */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "clock" .asciz "lev6" .asciz "nmi" .asciz "statclock" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0 GLO...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
8050dcbaaa0d252649771156d21387cf64f1c298
github
kernel
https://github.com/NetBSD/src/blob/8050dcbaaa0d252649771156d21387cf64f1c298/sys/arch/virt68k/virt68k/locore.s
681
701
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
lea var,ar #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) #define ASRELOC(var, ar) _RELOC(_ASM_LABEL(var), ar) BSS(lowram,4) BSS(esym,4) .globl _C_LABEL(edata) .globl _C_LABEL(etext),_C_LABEL(end) /* * This is for kvm_mkdb, and should be the address of the beginning * of the kernel text segment (not necessar...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
* The bootinfo immediately follows the kernel. Go parse * it to get CPU/FPU/MMU information and figure out where * the end of the loaded image really is. */ RELOC(bootinfo_start,%a0) movl #_C_LABEL(end),%sp@- jbsr %a0@ | bootinfo_start(end) addql #4,%sp /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
/* Config botch. No hope. SOLDIER ON! */ Lstart1: /* initialize source/destination control registers for movs */ moveq #FC_USERD,%d0 | user space movc %d0,%sfc | as source movc %d0,%dfc | and destination of transfers /* * bootinfo_start() recorded the first PA following the * bootinfo in bootinfo_end...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,%srp | load the supervisor root pointer #endif /* M68030 */ Lstploaddone: RELOC(mmutype, %a0) cmpl #MMU_68040,%a0@ | 68040? jne Lmotommu2 | no, skip movl #VIRT68K_TT40_IO,%d0 | DTT0 maps the I/O space .long 0x4e7b0006 | movc d0,dtt0 moveq...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
/* * Should be running mapped from this point on */ Lenab1: /* Point the CPU VBR at our vector table */ movl #_C_LABEL(vectab),%d0 | get our VBR address movc %d0,%vbr lea _ASM_LABEL(tmpstk),%sp | temporary stack /* call final pmap setup */ jbsr _C_LABEL(pmap_bootstrap_finalize) /* set kernel stack, user SP */ mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
/* * XXX Don't do the spl0() here; when Qemu performs a reboot request, * XXX it seems to not clear pending interrupts, and so we blow up * XXX early when the new kernel starts up. */ movw #PSL_LOWIPL,%sr | lower SPL #endif clrw %sp@- | vector offset/frame type clrl %sp@- | PC - filled in by "execve" m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it #endif Lfp_unimp: #endif /* M68040 */ jra _C_LABEL(illinst) ENTRY_NOPROFILE(fpunsupp) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unsupp | No, skip FPSP #ifdef F...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
/* always null state frame on 68040, 68060 */ cmpl #FPU_68040,_C_LABEL(fputype) jge Lfptnull #endif tstb %a0@ | null state frame? jeq Lfptnull | yes, safe clrw %d0 | no, need to tweak BIU movb %a0@(1),%d0 | get frame size bset #3,%a0@(0,%d0:w) | set exc_pend bit of BIU Lfptnull: fmovem %fpsr,%sp@- | push fpsr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
jne Lrei1 | Yup, go deal with it. movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | restore most registers addql #8,%sp | pop SP and stack adjust rte /* * Trap 12 is the entry point for the cachectl "syscall" (both HPUX & BSD) * cachectl(command, addr, length) * co...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
jeq Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fault /* * Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ ENTRY_NOPROFILE(tr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to do it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. | If we have both DDB and KGDB, let KGDB see it first, | because KGDB will just return 0 if not connected. | ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
rte | all done /* * Use common m68k sigreturn routine. */ #include <m68k/m68k/sigreturn.s> /* * Interrupt handlers. * * For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) ad...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
ASENTRY_NOPROFILE(rei) tstl _C_LABEL(astpending) | AST pending? jeq Ldorte | Nope. Just return. btst #5,%sp@ | Returning to kernel mode? jne Ldorte | Yup. Can't do ASTs movw #PSL_LOWIPL,%sr | lower SPL clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl %usp,%a1 | including movl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
#ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work because callee saved reg...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
.long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040 /* * interrupt counters. * XXXSCW: Will go away soon; kept here to keep vmstat happy */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "clock" .asciz "lev6" .asciz ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
219483d9ac8b4beb5e84ee761625f29ac41f0242
github
kernel
https://github.com/NetBSD/src/blob/219483d9ac8b4beb5e84ee761625f29ac41f0242/sys/arch/virt68k/virt68k/locore.s
681
705
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
/* Config botch. No hope. SOLDIER ON! */ Lstart1: /* initialize source/destination control registers for movs */ moveq #FC_USERD,%d0 | user space movc %d0,%sfc | as source movc %d0,%dfc | and destination of transfers /* * bootinfo_start() recorded the first PA following the * bootinfo in bootinfo_end...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
movl #MMU51_SRP_BITS,%a0@ | see pmap.h movl %d1,%a0@(4) | + segtable address pmove %a0@,%srp | load the supervisor root pointer movl #MMU51_CRP_BITS,%a0@ | reinit upper half for CRP loads Lstploaddone: RELOC(mmutype, %a0) cmpl #MMU_68040,%a0@ | 68040? jne Lmotommu2 | no, skip movl #VIRT68K_TT40_IO,%d0 | DT...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
pmove %sp@,%tc | load it /* * Should be running mapped from this point on */ Lenab1: /* Point the CPU VBR at our vector table */ movl #_C_LABEL(vectab),%d0 | get our VBR address movc %d0,%vbr lea _ASM_LABEL(tmpstk),%sp | temporary stack /* call final pmap setup */ jbsr _C_LABEL(pmap_bootstrap_finalize) /* set k...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
#if 0 /* * XXX Don't do the spl0() here; when Qemu performs a reboot request, * XXX it seems to not clear pending interrupts, and so we blow up * XXX early when the new kernel starts up. */ movw #PSL_LOWIPL,%sr | lower SPL #endif clrw %sp@- | vector offset/frame type clrl %sp@- | PC - filled in by "exe...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it #endif Lfp_unimp: #endif /* M68040 */ jra _C_LABEL(illinst) ENTRY_NOPROFILE(fpunsupp) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne L...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
#if defined(M68040) || defined(M68060) /* always null state frame on 68040, 68060 */ cmpl #FPU_68040,_C_LABEL(fputype) jge Lfptnull #endif tstb %a0@ | null state frame? jeq Lfptnull | yes, safe clrw %d0 | no, need to tweak BIU movb %a0@(1),%d0 | get frame size bset #3,%a0@(0,%d0:w) | set exc_pend bit of BIU L...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
tstl _C_LABEL(astpending) | AST pending? jne Lrei1 | Yup, go deal with it. movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | restore most registers addql #8,%sp | pop SP and stack adjust rte /* * Trap 12 is the entry point for the cachectl "syscall" (both HPUX & BSD...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to do it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. | If we have both DDB and KGDB, let KGDB see it first, | because KGDB will just return 0 if not connected. | ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
movl %sp@,%sp | ... and sp rte | all done /* * Use common m68k sigreturn routine. */ #include <m68k/m68k/sigreturn.s> /* * Interrupt handlers. * * For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NO...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
*/ ASENTRY_NOPROFILE(rei) tstl _C_LABEL(astpending) | AST pending? jeq Ldorte | Nope. Just return. btst #5,%sp@ | Returning to kernel mode? jne Ldorte | Yup. Can't do ASTs movw #PSL_LOWIPL,%sr | lower SPL clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl %usp,%a1 | including m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
#include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work because callee ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
GLOBAL(cputype) .long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040 /* * interrupt counters. * XXXSCW: Will go away soon; kept here to keep vmstat happy */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "clock" .asci...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e697980812a414790d0f92bfc363722df6302a00
github
kernel
https://github.com/NetBSD/src/blob/e697980812a414790d0f92bfc363722df6302a00/sys/arch/virt68k/virt68k/locore.s
681
706
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
#include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
1cd795a7c640afd52f677bb5238bc74df0714efd
github
kernel
https://github.com/NetBSD/src/blob/1cd795a7c640afd52f677bb5238bc74df0714efd/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work bec...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
1cd795a7c640afd52f677bb5238bc74df0714efd
github
kernel
https://github.com/NetBSD/src/blob/1cd795a7c640afd52f677bb5238bc74df0714efd/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
jne Lldno60 movc %cacr,%d0 orl #IC60_CUBC,%d0 | clear user branch cache entries movc %d0,%cacr Lldno60: #endif rts LmotommuC: #endif pflusha | flush entire TLB lea _C_LABEL(protorp),%a0 | CRP prototype movl %d0,%a0@(4) | stash USTP pmove %a0@,%crp | load root pointer movl #CACHE_CLR,%d0 movc %d0,%cacr ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
1cd795a7c640afd52f677bb5238bc74df0714efd
github
kernel
https://github.com/NetBSD/src/blob/1cd795a7c640afd52f677bb5238bc74df0714efd/sys/arch/virt68k/virt68k/locore.s
681
739
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:19
* interrupt counters. * XXXSCW: Will go away soon; kept here to keep vmstat happy */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "clock" .asciz "lev6" .asciz "nmi" .asciz "statclock" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0 GLOBAL(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
1cd795a7c640afd52f677bb5238bc74df0714efd
github
kernel
https://github.com/NetBSD/src/blob/1cd795a7c640afd52f677bb5238bc74df0714efd/sys/arch/virt68k/virt68k/locore.s
721
739
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
pmove %sp@,%tc | load it /* * Should be running mapped from this point on */ Lenab1: /* Point the CPU VBR at our vector table */ movl #_C_LABEL(vectab),%d0 | get our VBR address movc %d0,%vbr lea _ASM_LABEL(tmpstk),%sp | temporary stack /* call final pmap setup */ jbsr _C_LABEL(pmap_bootstrap_finalize) /* set k...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
movw #PSL_LOWIPL,%sr | lower SPL clrw %sp@- | vector offset/frame type clrl %sp@- | PC - filled in by "execve" movw #PSL_USER,%sp@- | in user mode clrl %sp@- | stack adjust count and padding lea %sp@(-64),%sp | construct space for D0-D7/A0-A7 lea _C_LABEL(lwp0),%a0 | save pointer to frame movl %sp,%a0@(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
| because KGDB will just return 0 if not connected. | Save args in d2, a2 movl %d0,%d2 | trap type movl %sp,%a2 | frame ptr #ifdef KGDB | Let KGDB handle it (if connected) 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
/* * Interrupt handlers. * * For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG lea %sp@(16),%a1 | get pointer to frame movl %a1...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl %usp,%a1 | including movl %a1,%sp@(FR_SP) | the users SP Lrei1: clrl %sp@- | VA == none clrl %sp@- | code == none movl #T_ASTFLT,%sp@- | type == async system trap pea %sp@(12) | fp == address of trap frame jbsr _C_LABEL(trap) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
*/ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 | address to wri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
601
660
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
#endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work because callee saved registers may be outside the stack frame * defined by A6 (e.g. GCC generated code). */ ENTRY_NOPROFILE(getsp) movl ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
LmotommuC: #endif pflusha | flush entire TLB lea _C_LABEL(protorp),%a0 | CRP prototype movl %d0,%a0@(4) | stash USTP pmove %a0@,%crp | load root pointer movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) rts ENTRY(getsr) moveq #0,%d0 movw %sr,%d0 rts /* * Misc. global variables. */ .data GLO...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
681
732
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:19
.asciz "lev3" .asciz "lev4" .asciz "clock" .asciz "lev6" .asciz "nmi" .asciz "statclock" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
46ec811456ee385a784f38ae06c854f9aa8098e9
github
kernel
https://github.com/NetBSD/src/blob/46ec811456ee385a784f38ae06c854f9aa8098e9/sys/arch/virt68k/virt68k/locore.s
721
732
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
#endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Get callers current SP value. * Note that simply taking the address of a local variable in a C function * doesn't work because callee saved registers may be outside the stack frame * defined by A6 (e.g. GCC generated code). */ ENTRY_NOPROFILE(getsp) movl ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f83db12ca6a74a01c1e9efb1a777cfaa84098ec6
github
kernel
https://github.com/NetBSD/src/blob/f83db12ca6a74a01c1e9efb1a777cfaa84098ec6/sys/arch/virt68k/virt68k/locore.s
641
700
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:18
LmotommuC: #endif pflusha | flush entire TLB lea _C_LABEL(protorp),%a0 | CRP prototype movl %d0,%a0@(4) | stash USTP pmove %a0@,%crp | load root pointer movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) rts ENTRY(getsr) moveq #0,%d0 movw %sr,%d0 rts /* * Handle the nitty-gritty of rebooting th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f83db12ca6a74a01c1e9efb1a777cfaa84098ec6
github
kernel
https://github.com/NetBSD/src/blob/f83db12ca6a74a01c1e9efb1a777cfaa84098ec6/sys/arch/virt68k/virt68k/locore.s
681
739
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:1
| $NetBSD: vectors.s,v 1.2 2024/01/02 07:52:47 thorpej Exp $ | Copyright (c) 1997 Jason R. Thorpe. All rights reserved. | Copyright (c) 1988 University of Utah | Copyright (c) 1990, 1993 | The Regents of the University of California. All rights reserved. | | Redistribution and use in source and binary forms, with or...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95
github
kernel
https://github.com/NetBSD/src/blob/13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95/sys/arch/virt68k/virt68k/vectors.s
1
60
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:2
VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) ; \ VECTOR(badtrap) ; VECTOR(badtrap) /* * bus error and address error vectors are ini...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95
github
kernel
https://github.com/NetBSD/src/blob/13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95/sys/arch/virt68k/virt68k/vectors.s
41
100
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:3
VECTOR(intrhand_autovec)/* 25: level 1 interrupt autovector */ VECTOR(intrhand_autovec)/* 26: level 2 interrupt autovector */ VECTOR(intrhand_autovec)/* 27: level 3 interrupt autovector */ VECTOR(intrhand_autovec)/* 28: level 4 interrupt autovector */ VECTOR(intrhand_autovec)/* 29: level 5 interrupt autovector */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95
github
kernel
https://github.com/NetBSD/src/blob/13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95/sys/arch/virt68k/virt68k/vectors.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:4
VECTOR(fpfault) /* 48: FPCP branch/set on unordered cond */ VECTOR(fpfault) /* 49: FPCP inexact result */ VECTOR(fpfault) /* 50: FPCP divide by zero */ VECTOR(fpfault) /* 51: FPCP underflow */ VECTOR(fpfault) /* 52: FPCP operand error */ VECTOR(fpfault) /* 53: FPCP overflow */ VECTOR(fpfault) /* 54: FPCP s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95
github
kernel
https://github.com/NetBSD/src/blob/13d937d9ba3db87c9a898a40a8ed9d2aab2b1b95/sys/arch/virt68k/virt68k/vectors.s
121
151
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:1
| $NetBSD: vectors.s,v 1.1 2024/01/02 07:41:02 thorpej Exp $ | Copyright (c) 1997 Jason R. Thorpe. All rights reserved. | Copyright (c) 1988 University of Utah | Copyright (c) 1990, 1993 | The Regents of the University of California. All rights reserved. | | Redistribution and use in source and binary forms, with or...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
f83db12ca6a74a01c1e9efb1a777cfaa84098ec6
github
kernel
https://github.com/NetBSD/src/blob/f83db12ca6a74a01c1e9efb1a777cfaa84098ec6/sys/arch/virt68k/virt68k/vectors.s
1
60
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:3
VECTOR(intrhand_autovec)/* 25: level 1 interrupt autovector */ VECTOR(intrhand_autovec)/* 26: level 2 interrupt autovector */ VECTOR(intrhand_autovec)/* 27: level 3 interrupt autovector */ VECTOR(intrhand_autovec)/* 28: level 4 interrupt autovector */ VECTOR(intrhand_autovec)/* 29: level 5 interrupt autovector */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
f83db12ca6a74a01c1e9efb1a777cfaa84098ec6
github
kernel
https://github.com/NetBSD/src/blob/f83db12ca6a74a01c1e9efb1a777cfaa84098ec6/sys/arch/virt68k/virt68k/vectors.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/vectors.s:4
VECTOR(fpfault) /* 48: FPCP branch/set on unordered cond */ VECTOR(fpfault) /* 49: FPCP inexact result */ VECTOR(fpfault) /* 50: FPCP divide by zero */ VECTOR(fpfault) /* 51: FPCP underflow */ VECTOR(fpfault) /* 52: FPCP operand error */ VECTOR(fpfault) /* 53: FPCP overflow */ VECTOR(fpfault) /* 54: FPCP s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/vectors.s
BSD-2-Clause
f83db12ca6a74a01c1e9efb1a777cfaa84098ec6
github
kernel
https://github.com/NetBSD/src/blob/f83db12ca6a74a01c1e9efb1a777cfaa84098ec6/sys/arch/virt68k/virt68k/vectors.s
121
155
NetBSD/src:sys/arch/x68k/stand/boot/srt0.S:1
/* $NetBSD: srt0.S,v 1.3 2024/01/07 07:58:33 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 mu...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot/srt0.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot/srt0.S
1
60
NetBSD/src:sys/arch/x68k/stand/boot/srt0.S:2
* %d7: boothowto * for /boot, only %d6 is used. */ start0: moveml %sp@+,%d0-%d2 lea %pc@(start),%sp movl %d6,%sp@- jbsr _C_LABEL(bootmain) ENTRY_NOPROFILE(_rtt) pea %pc@(reboot_msg) jbsr _C_LABEL(printf) jbsr _C_LABEL(getchar) trap #10 reboot_msg: .asciz "\n[Hit key to reboot]" .even /* * Det...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot/srt0.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot/srt0.S
41
100
NetBSD/src:sys/arch/x68k/stand/boot/srt0.S:3
bset #30,%d0 | data cache no allocate mode bit movc %d0,%cacr | only exists on 68060 movc %cacr,%d0 | read it back tstl %d0 | zero? jeq Lis68040 | yes, we have 68040 moveq #6,%d0 jra Lgo Lis68040: moveq #4,%d0 jra Lgo Lis68020: movl #2,%d0 | and a 68020 CPU Lgo: rts /* * Check if the given addres...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot/srt0.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot/srt0.S
81
115
NetBSD/src:sys/arch/x68k/stand/boot/srt0.S:1
/* $NetBSD: srt0.S,v 1.2 2011/04/12 14:07:35 tsutsui 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/boot/srt0.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/x68k/stand/boot/srt0.S
1
60
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:1
| file: boot.S | author: chapuni(webmaster@chapuni.com) | ITOH Yasufumi | | $NetBSD: boot.S,v 1.19 2020/01/28 11:57:22 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 ful...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
1
60
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:2
| #include <machine/asm.h> #include "iocscall.h" #define SRAM 0x00ED0000 /* SRAM stat addr */ #define SRAM_MEMSZ (SRAM + 8) /* (L) size of main memory */ #define MINMEM 0x00400000 /* at least 4MB required */ #define BOOT_ERROR(s) jbsr boot_error; .asciz s; .even .globl _C_LABEL(bootufs) .text ASENTRY_NOPROFILE(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
41
100
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:3
ASENTRY_NOPROFILE(entry) movew #_end-1,%d0 | bss end (low word only) | clear out bss (must be <= 64KB) subw %a1,%d0 clrbss: clrb %a1@+ dbra %d0,clrbss movel %d4,RELOC(ID) | SCSI ID (if booted from SCSI) lea 0x00100000,%sp | set system stack lea %a5@,%a1 | set load address | a1 will be used later...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
81
140
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:4
jne boot_ram_rom | | SASI or Floppy | movel %d0,%d2 andib #0xFC,%d0 cmpib #0x90,%d0 jne boot_dev_unsupported | boot from SASI? | | Floppy | moveb %d2,%d0 andib #0x03,%d0 | drive # (head=0) jbsr check_fd_format moveml %d0-%d1,RELOC(FDSECMINMAX) | min and max sec # lslw #8,%d2 moveq #0x70...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
121
180
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:5
booterr_msg: .ascii "\r\n\n" .ascii BOOT .asciz ": " reboot_msg: .asciz "\r\n[Hit key to reboot]" .even ENTRY_NOPROFILE(BOOT_ERROR) addql #4,%sp boot_error: lea %pc@(booterr_msg),%a1 IOCS(__B_PRINT) moveal %sp@+,%a1 IOCS(__B_PRINT) lea %pc@(reboot_msg),%a1 IOCS(__B_PRINT) | wait for a key press (...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
161
220
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:6
lsrb #1,%d5 | 0: 256, 1: 512, 2: 1024 movel %d5,RELOC(SCSI_BLKLEN) | find out the start position of the boot partition | XXX VERY AD HOC | | ROM firmware: | pass read pos (in block #) in d2 | Human68k-style partition table does not exist | d2 is 4 at the maximum | SCSI IPLs (genuine and SxSI): | p...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
201
260
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:7
movel %d5,%sp@- moveq #8192/512,%d3 | ÆÉ¤ß¹þ¤á¤ëºÇÂ祵¥¤¥º moveq #0x40,%d2 | ¤¤¤ï¤æ¤ë·è¤áÂǤÁ(sd*a ¤Î¤ß) SCSIIOCS(__S_READ) #endif boot_read_done: jmp first_kbyte read_error: BOOT_ERROR("read error") #undef RELOC /* base register a5 is no longer available */ #undef ASRELOC #undef _RELOC | | read SCSI | | ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
241
300
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:8
moveq #__S_READ,%d1 cmpl %d3,%d6 jcc scsiread_noext subl %d2,%d0 | d0.0 = 0x200000 - pos cmpl %d0,%d3 | <= len jcs scsiread_noext | no scsiread_ext: | use READEXT extw %d6 | d6.l = 65535 moveq #__S_READEXT,%d1 scsiread_noext: | use READ loop_scsiread: | d1: SCSI IOCS call # | d6: max sector count...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
281
340
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:9
| PC-relative can be used from here. | | Initialize the screen here. Some IPL (060turbo ROM or | genuine boot selector) don't initialize the screen. | Such initialization should be done as early as possible | but it's too severe to place it in first_kbyte area. | Therefore do it here. moveq #0x10,%d1 IOC...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
321
380
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:10
Lraw_read_buf=4+(4*11) Lraw_read_pos_=Lraw_read_buf+4 Lraw_read_len=Lraw_read_buf+8 #ifdef SCSI_ADHOC_BOOTPART | RAW_READ of physical disk ENTRY_NOPROFILE(RAW_READ0) moveq #0,%d0 jra raw_read1 #endif ENTRY_NOPROFILE(RAW_READ) #ifdef SCSI_ADHOC_BOOTPART movel _C_LABEL(SCSI_PARTTOP),%d0 raw_read1: #endif moveml...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
361
420
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:11
lsll #1,%d2 | X flag and d2: pos in 256byte-blocks roxrl %d5,%d2 | pos in sector addl %d0,%d2 | physical pos in sector #else moveq #1,%d5 | 512bytes/sec moveq #9,%d0 | shift count addl #511,%d3 lsrl %d0,%d3 bcss read_half | minimal error check addl #0x40,%d2 | 'a' partition starts here #endif | j...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
401
460
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:12
subb %a0@(3),%d1 | - min sector # addqb #1,%d1 | d1: # sectors divu %d1,%d2 | d2: (sec << 16) | track | position = (sec length << 24) | (track/2 << 16) | | (track%2 << 8) | (min sec # + sec) movel %a0@,%d0 | d0: (sec len << 24) | min sec # lsrw #1,%d2 | d2: (sec << 16) | (track / 2) jcc 1f bset ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
441
500
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:13
raw_read_end: moveml %sp@+,%a2-%a6/%d2-%d7 rts #undef _RELOC /* base register a5 is no longer available */ #undef ASRELOC #undef RELOC read_half: BOOT_ERROR("read half of block") ENTRY_NOPROFILE(B_PUTC) movel %sp@(4),%d1 IOCS(__B_PUTC) rts ENTRY_NOPROFILE(B_PRINT) movel %sp@(4),%a1 IOCS(__B_PRINT) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
481
540
NetBSD/src:sys/arch/x68k/stand/boot_ufs/boot.S:14
1: moveb %a0@-,%a1@- subql #1,%d1 jne 1b jra Lmcpret Lmcpfw: | copy forward 1: moveb %a0@+,%a1@+ subql #1,%d1 jne 1b Lmcpret: | movel %sp@(8),%d0 | uncomment this to conform ANSI rts | | global variables | BSS(ID, 4) | SCSI ID BSS(BOOT_INFO, 4) | result of IOCS(__BOOTINF) BSS(FDMODE, 4) | Floppy access ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/boot_ufs/boot.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/boot_ufs/boot.S
521
551
NetBSD/src:sys/arch/x68k/stand/common/chkfmt.s:1
| | check FD format | | Written by ITOH Yasufumi | This code is in the public domain | | $NetBSD: chkfmt.s,v 1.2 2011/02/21 02:31:58 itohy Exp $ /* FDC address */ #define FDC_STATUS 0xE94001 /* status register */ #define FDC_DATA 0xE94003 /* data register */ #define INT_STAT 0xE9C001 /* interrupt control */ #defin...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/chkfmt.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/chkfmt.s
1
60
NetBSD/src:sys/arch/x68k/stand/common/chkfmt.s:2
moveb %d0,%d6 | head, drive lea FDC_STATUS:l,%a1 lea %a1@(FDC_DATA-FDC_STATUS),%a2 | FDC_DATA lea %a2@(INT_STAT-FDC_DATA),%a3 | INT_STAT movew %sr,%sp@- oriw #0x0700,%sr | keep out interrupts moveq #INT_FDC_BIT,%d5 bclr %d5,%a3@ | disable FDC interrupt jbsr read_id_sub jne exit_check_format movel %d3,%...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/chkfmt.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/chkfmt.s
41
100
NetBSD/src:sys/arch/x68k/stand/common/chkfmt.s:3
| | input: d6.b: 0 0 0 0 0 HD US1 US0 (binary) | a1: FDC status addr | a2: FDC data addr | interrupt must be disabled | output: d3.l: sector information: N C H R (2hex) | d7.l: status (nonzero if error) | Z flag: true if no error, false if error | destroy: | d3-d4, d7 | read_id_sub: | wait for FDC ready fdc_wait...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/chkfmt.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/chkfmt.s
81
140
NetBSD/src:sys/arch/x68k/stand/common/chkfmt.s:4
| receive d4:w + 1 bytes from FDC | fdc_read_bytes: asll #8,%d3 fdc_read_loop: jbsr fdc_wait_rqm jpl fdc_read_loop moveb %a2@,%d3 dbra %d4,fdc_read_bytes rts fdc_wait_rqm: moveb %a1@,%d3 jpl fdc_wait_rqm | NE7ST_RQM_BIT = 7: sign bit lslb #1,%d3 | NE7ST_DIO_BIT = 6 ... move to bit #7 rts | | error | _err...
arm64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/stand/common/chkfmt.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/x68k/stand/common/chkfmt.s
121
142
NetBSD/src:sys/arch/x68k/stand/common/exec_image.S:1
/* $NetBSD: exec_image.S,v 1.3 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 c...
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
1
60
NetBSD/src:sys/arch/x68k/stand/common/exec_image.S:2
|| unsigned int entry; || int size; || int bootdev; || int boothowto; addl #4,%sp | throw away the return address moveml %sp@+,%a4-%a6 moveml %sp@+,%d5-%d7 /* copy the trampoline to the last physical page. */ moval LASTADDR,%sp | tmpstack from end of physmem lea %sp@(-4096),%a3 | use last phys page as tr...
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
41
100