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:14
*/ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) /* FALLTHROUGH to rei */ /* * Emulation of VAX REI instruction. * * This code deals with checking for and servicing ASTs * (...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
12f7cdbe981c42e2e00de6e44cdba36045b2e9aa
github
kernel
https://github.com/NetBSD/src/blob/12f7cdbe981c42e2e00de6e44cdba36045b2e9aa/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
movw %sp@(FR_ADJ),%d0 | need to adjust stack? jne Laststkadj | yes, go to it moveml %sp@+,#0x7FFF | no, restore most user regs addql #8,%sp | toss SP and stack adjust Ldorte: rte | and do real RTE Laststkadj: lea %sp@(FR_HW),%a1 | pointer to HW frame addql #8,%a1 | source pointer movl %a1,%a0 | sourc...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
12f7cdbe981c42e2e00de6e44cdba36045b2e9aa
github
kernel
https://github.com/NetBSD/src/blob/12f7cdbe981c42e2e00de6e44cdba36045b2e9aa/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync moveq #0,%d0 | indicate no fault jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
12f7cdbe981c42e2e00de6e44cdba36045b2e9aa
github
kernel
https://github.com/NetBSD/src/blob/12f7cdbe981c42e2e00de6e44cdba36045b2e9aa/sys/arch/virt68k/virt68k/locore.s
601
657
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
casl %d0,%d0,%sp@ rts END(paravirt_membar_sync) /* * 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
12f7cdbe981c42e2e00de6e44cdba36045b2e9aa
github
kernel
https://github.com/NetBSD/src/blob/12f7cdbe981c42e2e00de6e44cdba36045b2e9aa/sys/arch/virt68k/virt68k/locore.s
641
657
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
movc %d0,%cacr | enable store buffer, both caches jmp Lmmuenabled Lnot060cache: #endif movl #0x80008000,%d0 movc %d0,%cacr | turn on both caches jmp Lmmuenabled Lnot040mmu: #endif /* M68040 || M68060 */ #if defined(M68020) || defined(M68030) RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
addql #8,%sp /* phase 2 of pmap setup, returns pointer to lwp0 uarea in %a0 */ jbsr _C_LABEL(pmap_bootstrap2) /* set kernel stack, user SP */ lea %a0@(USPACE-4),%sp | set kernel stack to end of area movl #USRSTACK-4,%a2 movl %a2,%usp | init user SP tstl _C_LABEL(fputype) | Have an FPU? jeq Lenab2 | No, skip. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
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@(L_MD_REGS) | in lwp0.l_md.md_regs jra _C_LABEL(main) | main() /* * Trap/interrupt vector routines */ #include <...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
#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 registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
Lfptnull: fmovem %fpsr,%sp@- | push fpsr as code argument frestore %a0@ | restore state movl #T_FPERR,%sp@- | push type arg jra _ASM_LABEL(faultstkadj) | call trap and deal with stack cleanup /* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment. */ ENTRY_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
* 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,%sp@- | push length movl %a1,%sp@- | push addr movl %d0,%sp@- | push command jbsr _C_LABEL(cachectl1) | do it lea %sp@...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
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 cmpl #0,%d0 | did kgdb handle it? jne Lbrkpt3 | yes, done #endif #ifdef DDB | Let DDB handle it m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
* interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) /* FALLTHROUGH to rei */ /* * Emulation of VAX REI instruction. * * This code deals with checking for and serv...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
movl %a0,%usp | from save area movw %sp@(FR_ADJ),%d0 | need to adjust stack? jne Laststkadj | yes, go to it moveml %sp@+,#0x7FFF | no, restore most user regs addql #8,%sp | toss SP and stack adjust Ldorte: rte | and do real RTE Laststkadj: lea %sp@(FR_HW),%a1 | pointer to HW frame addql #8,%a1 | sou...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync moveq #0,%d0 | indicate no fault jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear faul...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
601
658
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:17
clrl %d0 casl %d0,%d0,%sp@ rts END(paravirt_membar_sync) /* * 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
e6d48a495e7d10b3a568babe536d6f9d08497532
github
kernel
https://github.com/NetBSD/src/blob/e6d48a495e7d10b3a568babe536d6f9d08497532/sys/arch/virt68k/virt68k/locore.s
641
658
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
movc %d0,%cacr | enable store buffer, both caches jmp Lmmuenabled Lnot060cache: #endif movl #0x80008000,%d0 movc %d0,%cacr | turn on both caches jmp Lmmuenabled Lnot040mmu: #endif /* M68040 || M68060 */ #if defined(M68020) || defined(M68030) RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
ed16fec82b9b94c01b36279d61975c449e014d38
github
kernel
https://github.com/NetBSD/src/blob/ed16fec82b9b94c01b36279d61975c449e014d38/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
addql #8,%sp /* phase 2 of pmap setup, returns pointer to lwp0 uarea in %a0 */ jbsr _C_LABEL(pmap_bootstrap2) /* set kernel stack, user SP */ lea %a0@(USPACE-4),%sp | set kernel stack to end of area movl #USRSTACK-4,%a2 movl %a2,%usp | init user SP tstl _C_LABEL(fputype) | Have an FPU? jeq Lenab2 | No, skip. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
ed16fec82b9b94c01b36279d61975c449e014d38
github
kernel
https://github.com/NetBSD/src/blob/ed16fec82b9b94c01b36279d61975c449e014d38/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
addl %a5,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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
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 /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%cacr | clear and disable on-chip cache(s) /* XXX XXX XXX */ /* * Qemu does not pass us the symbols, so leave...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
* that away in a callee-saved register to use later, * after the MMU is enabled. */ movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lmmuenabled Lnot060cache: #endif movl #0x80008000,%d0 movc %d0,%cacr | turn on both caches jmp Lmmuenabled Lnot040mmu: #endif /* M68040 || M68060 */ #if defined(M68020) || defined(M68030) RELOC(protorp, %a0) movl %d1,%a0@(4) | segtabl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
jbsr _C_LABEL(bootinfo_startup2) addql #8,%sp /* phase 2 of pmap setup, returns pointer to lwp0 uarea in %a0 */ jbsr _C_LABEL(pmap_bootstrap2) /* set kernel stack, user SP */ lea %a0@(USPACE-4),%sp | set kernel stack to end of area movl #USRSTACK-4,%a2 movl %a2,%usp | init user SP tstl _C_LABEL(fputype) | Have a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
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@(L_MD_REGS) | in lwp0.l_md.md_regs jra _C_LABEL(main) | main() /* * Tr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
618ea51534f253ea43fa6747794a7224a0f97fa7
github
kernel
https://github.com/NetBSD/src/blob/618ea51534f253ea43fa6747794a7224a0f97fa7/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
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 /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%cacr | clear and disable on-chip cache(s) /* XXX XXX XXX */ /* * Qemu does not pass us the symbols, so leave...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e9490bd274f8b25838e3a5cc86583af39433f328
github
kernel
https://github.com/NetBSD/src/blob/e9490bd274f8b25838e3a5cc86583af39433f328/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
addl %a5,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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
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 /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%cacr | clear and disable on-chip cache(s) /* XXX XXX XXX */ /* * Qemu does not pass us the symbols, so leave...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movc %d0,%dfc | and destination of transfers /* * Enable the MMU. * Since the kernel is mapped logical == physical, we just turn it on. */ RELOC(Sysseg_pa, %a0) | system segment table addr movl %a0@,%d1 | read value (a PA) #if defined(M68040) || defined(M68060) RELOC(mmutype, %a0) cmpl #MMU_68040,%a0@ | 6...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
#if defined(M68020) || defined(M68030) RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,%srp | load the supervisor root pointer #ifdef M68030 RELOC(mmutype, %a0) cmpl #MMU_68030,%a0@ | 68030? jne Lno030ttr | no, skip RELOC(mmu_tt30, %a0) | pointer to TT reg values movl %a0,%sp@- RELOC(mm...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
cmpl #MMU_68040,_C_LABEL(mmutype) | 68040? jeq Ltbia040 | yes, cache already on pflusha movl #CACHE_ON,%d0 movc %d0,%cacr | clear cache(s) jra Lenab3 Ltbia040: .word 0xf518 Lenab3: /* * final setup for C code: * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; we exi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
* Use common m68k bus error and address error handlers. */ #include <m68k/m68k/busaddrerr.s> /* * FP exceptions. */ ENTRY_NOPROFILE(fpfline) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unimp | no, skip FPSP cmpw #0x202c,%sp@(6) | format type 2? jne _C_LABEL(illinst) | no, not an...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
/* * Handles all other FP coprocessor exceptions. * Note that since some FP exceptions generate mid-instruction frames * and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ ENTRY_NOPROFILE(fpfault) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save user registe...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
movw %sp@(22),%sp@- | push exception vector info clrw %sp@- movl %sp@(22),%sp@- | and PC jbsr _C_LABEL(straytrap) | report addql #8,%sp | pop args moveml %sp@+,#0x0303 | restore regs jra _ASM_LABEL(rei) | all done ENTRY_NOPROFILE(trap0) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save user ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
* Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ ENTRY_NOPROFILE(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Check PSW and see what happen. | T=0 S=0 (should not happen) | T=1 S=0 trace trap from user mode | ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
movl %a6,%sp@(FR_SP) | from before trap | If were are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the temporary stack movl %sp,%a0 | a0=src lea _ASM_LABEL(tmpstk)-96,%a1 | a1=dst movl %...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it modified (by kgdb push call), | so push the hardware frame at the current sp | before restoring registers and returning. movl %sp@(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
* * This code deals with checking for and servicing ASTs * (profiling, scheduling). * After identifying that we need an AST we drop the IPL to allow device * interrupts. * * This code is complicated by the fact that sendsig may have been called * necessitating a stack cleanup. */ ASENTRY_NOPROFILE(rei) tstl _C...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP rte | and do real RTE /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the same as membar_sync, but guaranteed never to be * conditionalized or hotpatched away even on uniprocessor * builds a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
4b85ee668a505a0fff6624e9a0c9dd072fd4b15d
github
kernel
https://github.com/NetBSD/src/blob/4b85ee668a505a0fff6624e9a0c9dd072fd4b15d/sys/arch/virt68k/virt68k/locore.s
601
644
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
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 /* XXX XXX XXX */ movl #CACHE_OFF,%d0 movc %d0,%cacr | clear and disable on-chip cache(s) /* XXX XXX XXX */ /* * Qemu does not pass us the symbols, so leave...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
addql #8,%sp /* 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 /* * Enable the MMU. * Since the kernel is mapped logical == physical, we just turn it on. */ RELOC(Sysseg_pa, %a0) | syste...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
movl #0x80008000,%d0 movc %d0,%cacr | turn on both caches jmp Lmmuenabled Lnot040mmu: #endif /* M68040 || M68060 */ #if defined(M68020) || defined(M68030) RELOC(protorp, %a0) movl %d1,%a0@(4) | segtable address pmove %a0@,%srp | load the supervisor root pointer #ifdef M68030 RELOC(mmutype, %a0) cmpl #MMU_680...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
clrl %a1@(PCB_FPCTX) | ensure null FP context movl %a1,%sp@- jbsr _C_LABEL(m68881_restore) | restore it (does not kill a1) addql #4,%sp Lenab2: cmpl #MMU_68040,_C_LABEL(mmutype) | 68040? jeq Ltbia040 | yes, cache already on pflusha movl #CACHE_ON,%d0 movc %d0,%cacr | clear cache(s) jra Lenab3 Ltbia040: .wo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
* Trap/interrupt vector routines */ #include <m68k/m68k/trap_subr.s> /* * Use common m68k bus error and address error handlers. */ #include <m68k/m68k/busaddrerr.s> /* * FP exceptions. */ ENTRY_NOPROFILE(fpfline) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unimp | no, skip FPSP ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
jra _ASM_LABEL(fault) | do it #endif Lfp_unsupp: #endif /* M68040 */ jra _C_LABEL(illinst) /* * Handles all other FP coprocessor exceptions. * Note that since some FP exceptions generate mid-instruction frames * and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ ENTRY_N...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
* no post-trap stack adjustment. */ ENTRY_NOPROFILE(badtrap) moveml #0xC0C0,%sp@- | save scratch regs movw %sp@(22),%sp@- | push exception vector info clrw %sp@- movl %sp@(22),%sp@- | and PC jbsr _C_LABEL(straytrap) | report addql #8,%sp | pop args moveml %sp@+,#0x0303 | restore regs jra _ASM_LABEL(rei)...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
#endif #ifdef DDB | Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it modified (by kgdb push call...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
/* FALLTHROUGH to rei */ /* * Emulation of VAX REI instruction. * * This code deals with checking for and servicing ASTs * (profiling, scheduling). * After identifying that we need an AST we drop the IPL to allow device * interrupts. * * This code is complicated by the fact that sendsig may have been called *...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
addql #8,%a1 | source pointer movl %a1,%a0 | source addw %d0,%a0 | + hole size = dest pointer movl %a1@-,%a0@- | copy movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP rte | and do real RTE /* * Primitives */ /*...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
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 ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d5c5c295591e7fd338535dbf79875eeeab69157a
github
kernel
https://github.com/NetBSD/src/blob/d5c5c295591e7fd338535dbf79875eeeab69157a/sys/arch/virt68k/virt68k/locore.s
601
649
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
#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 as kernbase)....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
* 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 /* * bootinfo_start() recorded the first PA following the * bootinfo in bootinfo_end. That represents the...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
jne Lnot040mmu | no, skip .long 0x4e7b1807 | movc d1,srp RELOC(mmu_tt40, %a0) | pointer to TT reg values movl %a0,%sp@- RELOC(mmu_load_tt40,%a0) | pass it to mmu_load_tt40() jbsr %a0@ addql #4,%sp .word 0xf4d8 | cinva bc .word 0xf518 | pflusha movl #MMU40_TCR_BITS,%d0 .long 0x4e7b0003 | movc d0,tc #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
RELOC(mmu_load_tt30,%a0) | pass it to mmu_load_tt30() jbsr %a0@ addql #4,%sp Lno030ttr: #endif /* M68030 */ pflusha movl #MMU51_TCR_BITS,%sp@ | value to load TC with pmove %sp@,%tc | load it #endif /* M68020 || M68030 */ Lmmuenabled: /* * Should be running mapped from this point on */ lea _ASM_LABEL(tmpstk),%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
* Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; we exit to user mode from a forked process * later on. */ jbsr _C_LABEL(virt68k_init) | additional pre-main initialization #if 0 /* * XXX Don't do the spl0() here; when Qemu performs a reboot request, * XXX it seems to...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
cmpw #0x202c,%sp@(6) | format type 2? jne _C_LABEL(illinst) | no, not an FP emulation #ifdef FPSP jmp _ASM_LABEL(fpsp_unimp) | yes, go handle it #else 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
movl %a0,%sp@(FR_SP) | the user stack pointer clrl %sp@- | no VA arg movl _C_LABEL(curpcb),%a0 | current pcb lea %a0@(PCB_FPCTX),%a0 | address of FP savearea fsave %a0@ | save state #if defined(M68040) || defined(M68060) /* always null state frame on 68040, 68060 */ cmpl #FPU_68040,_C_LABEL(fputype) jge Lfpt...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
movl %usp,%a0 | save the user SP movl %a0,%sp@(FR_SP) | in the savearea movl %d0,%sp@- | push syscall number jbsr _C_LABEL(syscall) | handle it addql #4,%sp | pop syscall arg tstl _C_LABEL(astpending) | AST pending? jne Lrei1 | Yup, go deal with it. movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%us...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. * * For auto-vectored interrupts, the CPU...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
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 %a1,%sp@(FR_SP) | the users SP Lrei1: clrl %sp@- | VA == no...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
*/ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 | address to write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%a1@(PCB_ONFAULT) | where to return to on a fault movl %sp@(8),%a1 | address of line movl %a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
/* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the same as membar_sync, but guaranteed never to be * conditionalized or hotpatched away even on uniprocessor * builds and boots -- because under virtualization, we still * have to coordinate with a `devic...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
0451fe21aef9a5d06d7f27a351c5083b4dabd914
github
kernel
https://github.com/NetBSD/src/blob/0451fe21aef9a5d06d7f27a351c5083b4dabd914/sys/arch/virt68k/virt68k/locore.s
601
633
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
jne Lnot040mmu | no, skip .long 0x4e7b1807 | movc d1,srp RELOC(mmu_tt40, %a0) | pointer to TT reg values movl %a0,%sp@- RELOC(mmu_load_tt40,%a0) | pass it to mmu_load_tt40() jbsr %a0@ addql #4,%sp .word 0xf4d8 | cinva bc .word 0xf518 | pflusha movl #MMU40_TCR_BITS,%d0 .long 0x4e7b0003 | movc d0,tc #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
RELOC(mmu_load_tt30,%a0) | pass it to mmu_load_tt30() jbsr %a0@ addql #4,%sp Lno030ttr: #endif /* M68030 */ pflusha movl #MMU51_TCR_BITS,%sp@ | value to load TC with pmove %sp@,%tc | load it #endif /* M68020 || M68030 */ Lmmuenabled: /* * Should be running mapped from this point on */ lea _ASM_LABEL(tmpstk),%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
* final setup for C code: * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; we exit to user mode from a forked process * later on. */ jbsr _C_LABEL(virt68k_init) | additional pre-main initialization #if 0 /* * XXX Don't do the spl0() here; when Qemu performs a reboot r...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
jne Lfp_unimp | no, skip FPSP cmpw #0x202c,%sp@(6) | format type 2? jne _C_LABEL(illinst) | no, not an FP emulation #ifdef FPSP jmp _ASM_LABEL(fpsp_unimp) | yes, go handle it #else clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
movl %usp,%a0 | and save movl %a0,%sp@(FR_SP) | the user stack pointer clrl %sp@- | no VA arg movl _C_LABEL(curpcb),%a0 | current pcb lea %a0@(PCB_FPCTX),%a0 | address of FP savearea fsave %a0@ | save state #if defined(M68040) || defined(M68060) /* always null state frame on 68040, 68060 */ cmpl #FPU_68040,_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
moveml #0xFFFF,%sp@- | save user registers movl %usp,%a0 | save the user SP movl %a0,%sp@(FR_SP) | in the savearea movl %d0,%sp@- | push syscall number jbsr _C_LABEL(syscall) | handle it addql #4,%sp | pop syscall arg tstl _C_LABEL(astpending) | AST pending? jne Lrei1 | Yup, go deal with it. movl %sp@...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
| T=1 S=0 trace trap from user mode | T=0 S=1 trace trap on a trap instruction | T=1 S=1 trace trap from system mode (kernel breakpoint) movw %sp@(FR_HW),%d1 | get PSW notw %d1 | XXX no support for T0 on 680[234]0 andw #PSL_TS,%d1 | from system mode (T=1, S=1)? jeq Lkbrkpt | yes, kernel breakpoint j...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
movl %a1,%sp | sp=new frame movql #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1 jbgt Lbrkpt1 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
movl %sp@(FR_SP),%a0 | modified sp lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. * * ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
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 %a1,%sp@(FR_SP) | t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
* 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 write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%a1@(PCB_ONFAULT) | where t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
561
620
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the same as membar_sync, but guaranteed never to be * conditionalized or hotpatched away even on uniprocessor * builds and boots -- because under virtualization, we still * hav...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
441bbe544caaeb44e9588a47a909f6bfdb306a61
github
kernel
https://github.com/NetBSD/src/blob/441bbe544caaeb44e9588a47a909f6bfdb306a61/sys/arch/virt68k/virt68k/locore.s
601
634
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
jne Lnot040mmu | no, skip .long 0x4e7b1807 | movc d1,srp RELOC(mmu_tt40, %a0) | pointer to TT reg values movl %a0,%sp@- RELOC(mmu_load_tt40,%a0) | pass it to mmu_load_tt40() jbsr %a0@ addql #4,%sp .word 0xf4d8 | cinva bc .word 0xf518 | pflusha movl #MMU40_TCR_BITS,%d0 .long 0x4e7b0003 | movc d0,tc #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
7e031dc8e8134e41037a59ede523ab2fcf6c514f
github
kernel
https://github.com/NetBSD/src/blob/7e031dc8e8134e41037a59ede523ab2fcf6c514f/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
RELOC(mmu_load_tt30,%a0) | pass it to mmu_load_tt30() jbsr %a0@ addql #4,%sp Lno030ttr: #endif /* M68030 */ pflusha movl #MMU51_TCR_BITS,%sp@ | value to load TC with pmove %sp@,%tc | load it #endif /* M68020 || M68030 */ Lmmuenabled: /* * Should be running mapped from this point on */ lea _ASM_LABEL(tmpstk),%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
7e031dc8e8134e41037a59ede523ab2fcf6c514f
github
kernel
https://github.com/NetBSD/src/blob/7e031dc8e8134e41037a59ede523ab2fcf6c514f/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
* 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 write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%a1@(PCB_ONFAULT) | where t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
19d890c1953c3335a0c43aa0fafbb74f7b407a7b
github
kernel
https://github.com/NetBSD/src/blob/19d890c1953c3335a0c43aa0fafbb74f7b407a7b/sys/arch/virt68k/virt68k/locore.s
561
613
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
/* * 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
19d890c1953c3335a0c43aa0fafbb74f7b407a7b
github
kernel
https://github.com/NetBSD/src/blob/19d890c1953c3335a0c43aa0fafbb74f7b407a7b/sys/arch/virt68k/virt68k/locore.s
601
613
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
#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 as kernbase)....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
49351b43765925623a84c8d95ec3295fff958f11
github
kernel
https://github.com/NetBSD/src/blob/49351b43765925623a84c8d95ec3295fff958f11/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
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 */ /* initialize source/destination control registers for movs */ moveq #FC_USERD,%d0 | user space movc %d0,%sfc | as source movc %d0,%dfc | and desti...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
49351b43765925623a84c8d95ec3295fff958f11
github
kernel
https://github.com/NetBSD/src/blob/49351b43765925623a84c8d95ec3295fff958f11/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
.long 0x4e7b1807 | movc d1,srp jra Lstploaddone Lmotommu1: #ifdef M68030 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_TT4...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
49351b43765925623a84c8d95ec3295fff958f11
github
kernel
https://github.com/NetBSD/src/blob/49351b43765925623a84c8d95ec3295fff958f11/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
Lmotommu2: movl #VIRT68K_TT30_IO,%sp@- | TT0 maps the I/O space .long 0xf0170800 | pmove %sp@,%tt0 clrl %sp@ | ensure TT1 is disabled .long 0xf0170c00 | pmove %sp@,%tt1 pflusha movl #MMU51_TCR_BITS,%sp@ | value to load TC with pmove %sp@,%tc | load it /* * Should be running mapped from this point on */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
49351b43765925623a84c8d95ec3295fff958f11
github
kernel
https://github.com/NetBSD/src/blob/49351b43765925623a84c8d95ec3295fff958f11/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
movl %sp@(FR_SP),%a0 | modified sp lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. * * ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
c527a4d24e372638f96dd5533d54933058e3dfa0
github
kernel
https://github.com/NetBSD/src/blob/c527a4d24e372638f96dd5533d54933058e3dfa0/sys/arch/virt68k/virt68k/locore.s
481
540
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
c527a4d24e372638f96dd5533d54933058e3dfa0
github
kernel
https://github.com/NetBSD/src/blob/c527a4d24e372638f96dd5533d54933058e3dfa0/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
*/ /* * 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 write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%a1@(PCB_ONFAULT) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
c527a4d24e372638f96dd5533d54933058e3dfa0
github
kernel
https://github.com/NetBSD/src/blob/c527a4d24e372638f96dd5533d54933058e3dfa0/sys/arch/virt68k/virt68k/locore.s
561
616
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
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
c527a4d24e372638f96dd5533d54933058e3dfa0
github
kernel
https://github.com/NetBSD/src/blob/c527a4d24e372638f96dd5533d54933058e3dfa0/sys/arch/virt68k/virt68k/locore.s
601
616
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
.long 0x4e7b1807 | movc d1,srp jra Lstploaddone Lmotommu1: #ifdef M68030 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_TT4...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
Lmotommu2: pflusha movl #MMU51_TCR_BITS,%sp@- | value to load TC with pmove %sp@,%tc | load it /* * Should be running mapped from this point on */ Lenab1: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stack jbsr _C_LABEL(vec_init) | initialize the vector table /* call final pmap setup */ jbsr _C_LABEL(pm...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
jbsr _C_LABEL(virt68k_init) | additional pre-main initialization #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@- ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
jbgt Lbrkpt1 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
481
540
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
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 %a1,%sp@(FR_SP) | the users SP Lrei1: clrl %sp@- | VA == none clrl %sp@- | code == none mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
#define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(suline) movl %sp@(4),%a0 | address to write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%a1@(PCB_ONFAULT) | where to return to on a fault movl %sp@(8),%a1 | address of line movl %a1@+...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/virt68k/virt68k/locore.s
561
611
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:14
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 %a1,%sp@(FR_SP) | the users SP Lrei1: clrl %sp@- | VA == none clrl %sp@- | code == none mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/virt68k/virt68k/locore.s
521
580
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:15
/* * Primitives */ /* * 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 write movl _C_LABEL(curpcb),%a1 | current pcb movl #Lslerr,%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/virt68k/virt68k/locore.s
561
619
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:16
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
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/virt68k/virt68k/locore.s
601
619
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
jbgt Lbrkpt1 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77869c318b3ac7eb6bc146be4a068e26f9361215
github
kernel
https://github.com/NetBSD/src/blob/77869c318b3ac7eb6bc146be4a068e26f9361215/sys/arch/virt68k/virt68k/locore.s
441
500
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
moveml %sp@+,#0x7FFF | restore all but sp 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 fo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77869c318b3ac7eb6bc146be4a068e26f9361215
github
kernel
https://github.com/NetBSD/src/blob/77869c318b3ac7eb6bc146be4a068e26f9361215/sys/arch/virt68k/virt68k/locore.s
481
540
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
77869c318b3ac7eb6bc146be4a068e26f9361215
github
kernel
https://github.com/NetBSD/src/blob/77869c318b3ac7eb6bc146be4a068e26f9361215/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 process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #if defined(M68040) || defined(M68060) ENTRY(sul...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77869c318b3ac7eb6bc146be4a068e26f9361215
github
kernel
https://github.com/NetBSD/src/blob/77869c318b3ac7eb6bc146be4a068e26f9361215/sys/arch/virt68k/virt68k/locore.s
561
620
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
77869c318b3ac7eb6bc146be4a068e26f9361215
github
kernel
https://github.com/NetBSD/src/blob/77869c318b3ac7eb6bc146be4a068e26f9361215/sys/arch/virt68k/virt68k/locore.s
601
624