id
stringlengths
22
129
text
stringlengths
60
19.5k
arch
stringclasses
9 values
syntax
stringclasses
5 values
kind
stringclasses
4 values
repo
stringclasses
32 values
path
stringlengths
7
108
license
stringclasses
10 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
15 values
source_url
stringlengths
85
192
line_start
int64
1
5.48k
line_end
int64
4
5.5k
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
addql #1,_C_LABEL(intrcnt)+0 INTERRUPT_SAVEREG CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG rte | XXX mfpcure (x680x0 hardware bug) ENTRY_NOPROFILE(kbdtimer) rte ENTRY_NOPROFILE(intiotrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG pea %sp@(16-(FR_HW)) | XXX jbsr _C_LABEL(intio_intr) addql #4,%s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
jra _ASM_LABEL(rei) ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts movl %sp,%sp@- | push pointer to clockframe jbsr _C_LABEL(hardclock) | hardclock(&frame) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
/* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> /* * _delay(u_int N) * * Delay for at least N microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
jne Ldoboot0 | no, skip .word 0xf4f8 | cpusha bc - push and invalidate caches nop movl #CACHE40_OFF,%d0 Ldoboot0: #endif movc %d0,%cacr | disable on-chip cache(s) | ok, turn off MMU.. Ldoreboot: #if defined(M68040) || defined(M68060) tstl %d2 | 68040? jne LmotommuF | no, skip movc %a1,%cacr | caches of...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
.long EC_NONE | external cache type, default to none #endif GLOBAL(intiobase) .long 0 | KVA of base of internal IO space #ifdef DEBUG ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 #endif /* interrupt counters */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asci...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/x68k/x68k/locore.s
601
633
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
jra _ASM_LABEL(rei) ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts movl %sp,%sp@- | push pointer to clockframe jbsr _C_LABEL(hardclock) | hardclock(&frame) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
/* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * _delay(u_int N) * * Delay for at least N microseconds. * This routine depends on the variable: delay_divisor * wh...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
subal %a1,%a1 | a1 = 0 movl #CACHE_OFF,%d0 #if defined(M68040) || defined(M68060) movl _C_LABEL(mmutype),%d2 | d2 = mmutype addl #(-1 * MMU_68040),%d2 | 68040? jne Ldoboot0 | no, skip .word 0xf4f8 | cpusha bc - push and invalidate caches nop movl #CACHE40_OFF,%d0 Ldoboot0: #endif movc %d0,%cacr | disabl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
GLOBAL(cputype) .long CPU_68030 | default to 68030 CPU #ifdef M68K_MMU_HP GLOBAL(ectype) .long EC_NONE | external cache type, default to none #endif GLOBAL(intiobase) .long 0 | KVA of base of internal IO space #ifdef DEBUG ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 #endif /* interrupt coun...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/x68k/x68k/locore.s
601
639
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp jra _C_LABEL(main) | main() (never returns) /* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment. */ /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are si...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
moveq #T_TRAP15,%d0 movw %sp@(FR_HW),%d1 | get PSW andw #PSL_S,%d1 | from system mode? jne Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fault Lkbrkpt: | Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock o...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
movl %d2,%sp@- | push trap type jbsr _C_LABEL(kgdb_trap) | handle the trap addql #8,%sp | pop args cmpl #0,%d0 | did kgdb handle it? jne Lbrkpt3 | yes, done #endif #ifdef DDB | Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
INTERRUPT_SAVEREG CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG rte | XXX mfpcure (x680x0 hardware bug) ENTRY_NOPROFILE(kbdtimer) rte ENTRY_NOPROFILE(intiotrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG pea %sp@(16-(FR_HW)) | XXX jbsr _C_LABEL(intio_intr) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR)...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts movl %sp,%sp@- | push pointer to clockframe jbsr _C_LABEL(hardclock) | hardclock(&frame) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) | chalk up another int...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
* Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * _delay(u_int N) * * Delay for at least N microseconds. * This routine depends on the variable: delay_divisor * which ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
movl #CACHE_OFF,%d0 #if defined(M68040) || defined(M68060) movl _C_LABEL(mmutype),%d2 | d2 = mmutype addl #(-1 * MMU_68040),%d2 | 68040? jne Ldoboot0 | no, skip .word 0xf4f8 | cpusha bc - push and invalidate caches nop movl #CACHE40_OFF,%d0 Ldoboot0: #endif movc %d0,%cacr | disable on-chip cache(s) | ok, ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
Ltbia040: .word 0xf518 | pflusha Lenab3: movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp jra _C_LABEL(main) | main() (never returns) /* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
*/ ENTRY_NOPROFILE(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 movw %sp@(FR_HW),%d1 | get PSW andw #PSL_S,%d1 | from system mode? jne Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fault Lkbrkpt: | Kernel-mode breakpoint or trace trap. (%d0=trap...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
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/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
*/ ENTRY_NOPROFILE(spurintr) /* level 0 */ addql #1,_C_LABEL(intrcnt)+0 INTERRUPT_SAVEREG CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG rte | XXX mfpcure (x680x0 hardware bug) ENTRY_NOPROFILE(kbdtimer) rte ENTRY_NOPROFILE(intiotrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG pea %sp@(16-(FR_HW)) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts movl %sp,%sp@- | push pointer to clockframe jbsr _C...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
* Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * _delay(u_int N) * * Delay for at least N microseconds. * This routine depends on the variable: d...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
*/ ENTRY_NOPROFILE(doboot) movw #PSL_HIGHIPL,%sr | cut off any interrupts subal %a1,%a1 | a1 = 0 movl #CACHE_OFF,%d0 #if defined(M68040) || defined(M68060) movl _C_LABEL(mmutype),%d2 | d2 = mmutype addl #(-1 * MMU_68040),%d2 | 68040? jne Ldoboot0 | no, skip .word 0xf4f8 | cpusha bc - push and invalidate c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
.data GLOBAL(mmutype) .long MMU_68030 | default to 030 internal MMU GLOBAL(cputype) .long CPU_68030 | default to 68030 CPU #ifdef M68K_MMU_HP GLOBAL(ectype) .long EC_NONE | external cache type, default to none #endif GLOBAL(intiobase) .long 0 | KVA of base of internal IO space #ifdef DEBUG ASGLOBAL(fulltf...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/x68k/x68k/locore.s
601
642
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
Lenab3: /* final setup for C code */ movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp /* * 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. */ clrw...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
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 jra _ASM_LABEL(fault) | no, user-mode fault /* * Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
subql #4,%d1 jgt 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 ret...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
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 /* * Provide a generic inte...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
ENTRY_NOPROFILE(lev6intr) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG Lnotdma: lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value clrw %sp@- | padded ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
addql #8,%sp | pop SP and stack adjust subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. reqd. *...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
L_delay: subl %d1,%d0 jgt L_delay rts /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that is mapped one-to-one * logical to physical so that the PC is still valid immediately ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get RESET vectors in ROM | (d0: ssp, a0: pc) moveml #0x0101,%a1@ | put them at 0x0000 (for Xellent30) movc %a1,%vbr | reset Vector Base Register jmp %a0@ | reboot X680x0 Lebootcode: /* * Misc. global variables. */ .data GLOBAL(mmutyp...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
601
654
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
.asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce
github
kernel
https://github.com/NetBSD/src/blob/84a48d1a5808bcc15e4c5092d3710e1c7ed8cdce/sys/arch/x68k/x68k/locore.s
641
654
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
Lenab3: /* final setup for C code */ movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp /* * 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. */ clr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
| 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/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
movl %a1,%sp | %sp=new frame moveq #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1 jgt 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/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
| data below it modified (by kgdb push call), | so push the hardware frame at the current sp | before restoring registers and returning. 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) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
ENTRY_NOPROFILE(lev2intr) ENTRY_NOPROFILE(lev3intr) ENTRY_NOPROFILE(lev4intr) ENTRY_NOPROFILE(lev5intr) ENTRY_NOPROFILE(lev6intr) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG Lnotdma: lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
jbsr _C_LABEL(nmihand) | call handler movl %sp@(FR_SP),%a0 | restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | and remaining registers addql #8,%sp | pop SP and stack adjust subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _AS...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
movl %sp@(4),%d0 lsll #8,%d0 | %d1 = delay_divisor movl _C_LABEL(delay_divisor),%d1 L_delay: subl %d1,%d0 jgt L_delay rts /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get RESET vectors in ROM | (d0: ssp, a0: pc) moveml #0x0101,%a1@ | put them at 0x0000 (for Xellent30) movc %a1,%vbr | reset Vector Base Register jmp %a0@ | reboot X680x0 Lebootcode: /* * Mis...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
601
658
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/x68k/x68k/locore.s
641
658
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
jbsr _C_LABEL(nmihand) | call handler movl %sp@(FR_SP),%a0 | restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | and remaining registers addql #8,%sp | pop SP and stack adjust subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _AS...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
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 #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
* Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that is mapped one-to-one * logical to physical so that the PC is still valid immediately after the MMU * is turned off. We have conveniently mapped the last page of physical * memory th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
Lebootcode: /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68030 | default to 030 internal MMU GLOBAL(cputype) .long CPU_68030 | default to 68030 CPU #ifdef M68K_MMU_HP GLOBAL(ectype) .long EC_NONE | external cache type, default to none #endif GLOBAL(intiobase) .long 0 | KVA of base of...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/x68k/x68k/locore.s
641
687
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
cmpl #CPU_68060,%a0@ | 68060? jne Lnot060cache movl #1,%d0 .long 0x4e7b0808 | movcl %d0,%pcr movl #0xa0808000,%d0 movc %d0,%cacr | enable store buffer, both caches jmp Lenab1 Lnot060cache: #endif movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 Lmotommu2: pflusha movl #MMU51_TCR_BITS,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
Lenab2: cmpl #MMU_68040,_C_LABEL(mmutype) | 68040? jeq Ltbia040 | yes, cache already on pflusha tstl _C_LABEL(mmutype) jpl Lenab3 | 68851 implies no d-cache movl #CACHE_ON,%d0 movc %d0,%cacr | clear cache(s) jra Lenab3 Ltbia040: .word 0xf518 | pflusha Lenab3: /* final setup for C code */ movl %d7,%sp@- ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
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 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_F...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it #else jra _C_LABEL(illinst) #endif /* * 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
| Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #if 0 /* not needed on hp300 */ cmpl #0,%d0 | did ddb handle it? jne Lbrkpt3 | yes, done #endif #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The st...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
ENTRY_NOPROFILE(intiotrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG pea %sp@(16-(FR_HW)) | XXX jbsr _C_LABEL(intio_intr) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra rei ENTRY_NOPROFILE(lev1intr) ENTRY_NOPROFILE(lev2intr) ENTRY_NOPROFILE(lev3intr) ENTR...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) | chalk up another interrupt INTERRUPT_RESTOREREG | restore scratch registers subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done ENTRY_NOPROFILE(lev7intr) addql #1,_C_LABEL(intr_depth) addql #1,_C_LABEL(intrcnt)+28 clrl %sp@- moveml #0xFFFF,%sp@- | save reg...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
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@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
ENTRY_NOPROFILE(_delay) | %d0 = (usecs * a certain magnification factor) movl %sp@(4),%d0 lsll #8,%d0 | %d1 = delay_divisor movl _C_LABEL(delay_divisor),%d1 L_delay: subl %d1,%d0 jgt L_delay rts /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the approp...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
681
740
NetBSD/src:sys/arch/x68k/x68k/locore.s:19
movc %a1,%cacr | caches off .long 0x4e7b9003 | movc a1(=0),tc ; disable MMU jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disable MMU Ldoreboot1: moveml 0x00ff0000,#0x0101 | get RESET vectors in ROM | (d0: ssp, a0: pc) moveml #0x0101,%a1@ | put them at 0x0000 (for Xellent30) movc %a1,%vbr ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
721
780
NetBSD/src:sys/arch/x68k/x68k/locore.s:20
ASGLOBAL(fullcflush) .long 0 #endif /* interrupt counters */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
541800023228d9af16f8d1e462891dcac04857ac
github
kernel
https://github.com/NetBSD/src/blob/541800023228d9af16f8d1e462891dcac04857ac/sys/arch/x68k/x68k/locore.s
761
783
NetBSD/src:sys/arch/x68k/x68k/locore.s:5
bset #31,%d0 | data cache enable bit movc %d0,%cacr | only exists on 68040/68060 movc %cacr,%d0 | read it back tstl %d0 | zero? jeq Lis68020 | yes, we have 68020 moveq #0,%d0 | now turn it back off movec %d0,%cacr | before we access any data .word 0xf4d8 | cinva bc - invalidate caches XXX bset #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
161
220
NetBSD/src:sys/arch/x68k/x68k/locore.s:6
#if defined(M68060) cmpl #CPU_68060,%a0@ | 68060? jne 1f movl #_C_LABEL(buserr60),%a2@(8) movl #_C_LABEL(addrerr4060),%a2@(12) jra Lstart2 1: #endif #if defined(M68040) cmpl #CPU_68040,%a0@ | 68040? jne 1f movl #_C_LABEL(buserr40),%a2@(8) movl #_C_LABEL(addrerr4060),%a2@(12) jra Lstart2 1: #endif #if define...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
201
260
NetBSD/src:sys/arch/x68k/x68k/locore.s:7
#endif movl #_C_LABEL(end),%a4 | end of static kernel text/data Lstart3: RELOC(setmemrange,%a0) | call setmemrange() jbsr %a0@ | to probe all memory regions addl %a5,%a4 | convert to PA pea %a5@ | reloff pea %a4@ | nextpa RELOC(pmap_bootstrap1,%a0) jbsr %a0@ | pmap_bootstrap1(firstpa, nextpa) addql...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
241
300
NetBSD/src:sys/arch/x68k/x68k/locore.s:8
#include "opt_jupiter.h" #ifdef JUPITER /* JUPITER-X: set system register "SUPER" bit */ movl #0x0200a240,%d0 | translate DRAM area transparently .long 0x4e7b0006 | movc d0,dtt0 lea 0x00c00000,%a0 | %a0: graphic VRAM lea 0x02c00000,%a1 | %a1: graphic VRAM ( not JUPITER-X ) | DRAM ( JUPITER-X ) movw ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
281
340
NetBSD/src:sys/arch/x68k/x68k/locore.s:9
movl #CACHE40_ON,%d0 movc %d0,%cacr | turn on both caches jmp Lenab1 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: /* set vector base in virtual address */ movl #_C_LABEL(vectab),%d0 | set Vector Base...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
321
380
NetBSD/src:sys/arch/x68k/x68k/locore.s:10
movc %d0,%cacr | clear cache(s) jra Lenab3 Ltbia040: .word 0xf518 | pflusha Lenab3: /* final setup for C code */ movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(x68k_init) | additional pre-main initialization addql #4,%sp /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main()...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
361
420
NetBSD/src:sys/arch/x68k/x68k/locore.s:11
clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULI,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it #endif Lfp_unimp: #endif /* M68040 */ #ifdef FPU_EMULATE clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denot...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
401
460
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
* 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 registers...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
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 | 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
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 %a1,%sp | %sp=new frame moveq #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1 jgt Lbrkpt1 Lbrkpt2: | Call the trap handl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
jne Lbrkpt3 | yes, done #endif #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@(FR_SP),%a0 | modified %sp lea %sp@...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra rei ENTRY_NOPROFILE(lev1intr) ENTRY_NOPROFILE(lev2intr) ENTRY_NOPROFILE(lev3intr) ENTRY_NOPROFILE(lev4intr) ENTRY_NOPROFILE(lev5intr) ENTRY_NOPROFILE(lev6intr) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG Lnotdma: lea _C_LABEL(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
addql #1,_C_LABEL(intr_depth) addql #1,_C_LABEL(intrcnt)+28 clrl %sp@- moveml #0xFFFF,%sp@- | save registers movl %usp,%a0 | and save movl %a0,%sp@(FR_SP) | the user stack pointer jbsr _C_LABEL(nmihand) | call handler movl %sp@(FR_SP),%a0 | restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | and r...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync moveq #0,%d0 | indicate no fault jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
681
740
NetBSD/src:sys/arch/x68k/x68k/locore.s:19
subl %d1,%d0 jgt L_delay rts /* * Handle the nitty-gritty of rebooting the machine. * Basically we just turn off the MMU and jump to the appropriate ROM routine. * Note that we must be running in an address range that is mapped one-to-one * logical to physical so that the PC is still valid immediately after the ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
721
780
NetBSD/src:sys/arch/x68k/x68k/locore.s:20
Ldoreboot1: moveml 0x00ff0000,#0x0101 | get RESET vectors in ROM | (d0: ssp, a0: pc) moveml #0x0101,%a1@ | put them at 0x0000 (for Xellent30) movc %a1,%vbr | reset Vector Base Register jmp %a0@ | reboot X680x0 Lebootcode: /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68030 | default...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
761
816
NetBSD/src:sys/arch/x68k/x68k/locore.s:21
.asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "clock" .asciz "com" GLOBAL(eintrnames) .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0,0,0 GLOBAL(eintrcnt)
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/x68k/x68k/locore.s
801
816
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
* 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 registers...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
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@(16),%sp | pop args jra _ASM_LABEL(rei) | all done /* * Trace (single-step) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
jra _ASM_LABEL(rei) ENTRY_NOPROFILE(timertrap) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG | save scratch registers addql #1,_C_LABEL(intrcnt)+32 | count hardclock interrupts movl %sp,%sp@- | push pointer to clockframe jbsr _C_LABEL(hardclock) | hardclock(&frame) addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
/* * 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) | wh...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
681
740
NetBSD/src:sys/arch/x68k/x68k/locore.s:19
/* * _delay(u_int N) * * Delay for at least N microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. */ ENTRY_NOPROFILE(_delay) | %d0 = (usecs * a certain magnification factor) movl %sp@(4),%d0 lsll #8,%d0 | %d1 = delay_divisor movl _C_LABEL(de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
721
780
NetBSD/src:sys/arch/x68k/x68k/locore.s:20
#endif movc %d0,%cacr | disable on-chip cache(s) | ok, turn off MMU.. Ldoreboot: #if defined(M68040) || defined(M68060) tstl %d2 | 68040? jne LmotommuF | no, skip movc %a1,%cacr | caches off .long 0x4e7b9003 | movc a1(=0),tc ; disable MMU jra Ldoreboot1 LmotommuF: #endif clrl %sp@ pmove %sp@,%tc | disa...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
761
820
NetBSD/src:sys/arch/x68k/x68k/locore.s:21
GLOBAL(intiobase) .long 0 | KVA of base of internal IO space #ifdef DEBUG ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 #endif /* interrupt counters */ GLOBAL(intrnames) .asciz "spur" .asciz "lev1" .asciz "lev2" .asciz "lev3" .asciz "lev4" .asciz "lev5" .asciz "lev6" .asciz "nmi" .asciz "c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/x68k/x68k/locore.s
801
831
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
* 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 registers...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
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 _ASM_LABEL(doast) | Yup, go deal with it. movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | restore most registers addq...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
movl %a0@+,%a1@+ subql #4,%d1 jgt 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
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 /* * Provide a generic inte...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
ENTRY_NOPROFILE(lev5intr) ENTRY_NOPROFILE(lev6intr) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG Lnotdma: lea _C_LABEL(intrcnt),%a0 movw %sp@(22),%d0 | use vector offset andw #0xfff,%d0 | sans frame type addql #1,%a0@(-0x60,%d0:w) | to increment apropos counter movw %sr,%sp@- | push current SR value ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
moveml %sp@+,#0x7FFF | and remaining registers addql #8,%sp | pop SP and stack adjust subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * floppy ejection trap */ ENTRY_NOPROFILE(fdeject) jra _ASM_LABEL(rei) /* * Primitives */ /* * Use common m68k process/lwp switch and context save subrou...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
681
740
NetBSD/src:sys/arch/x68k/x68k/locore.s:19
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 #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * _delay(u_int N) * * Delay for at least N microseconds. * This routine d...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
721
780
NetBSD/src:sys/arch/x68k/x68k/locore.s:20
* is turned off. We have conveniently mapped the last page of physical * memory this way. */ ENTRY_NOPROFILE(doboot) movw #PSL_HIGHIPL,%sr | cut off any interrupts subal %a1,%a1 | a1 = 0 movl #CACHE_OFF,%d0 #if defined(M68040) || defined(M68060) movl _C_LABEL(mmutype),%d2 | d2 = mmutype addl #(-1 * MMU_68040...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
761
820
NetBSD/src:sys/arch/x68k/x68k/locore.s:21
* Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68030 | default to 030 internal MMU GLOBAL(cputype) .long CPU_68030 | default to 68030 CPU #ifdef M68K_MMU_HP GLOBAL(ectype) .long EC_NONE | external cache type, default to none #endif GLOBAL(fputype) .long FPU_NONE GLOBAL(intiobase) .long 0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/x68k/x68k/locore.s
801
847
NetBSD/src:sys/arch/x68k/x68k/locore.s:12
* 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 registers...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
441
500
NetBSD/src:sys/arch/x68k/x68k/locore.s:13
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 registers movl %usp,%a0 | save the user SP movl %a0,%sp@(FR_SP) | in the savearea movl ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
481
540
NetBSD/src:sys/arch/x68k/x68k/locore.s:14
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 | T=0 S=1 trace trap on a trap instruction | T=1 S=1 trace trap from system mode (kernel breakpoint) movw...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
521
580
NetBSD/src:sys/arch/x68k/x68k/locore.s:15
| (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 %a1,%sp | %sp=new frame moveq #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
561
620
NetBSD/src:sys/arch/x68k/x68k/locore.s:16
cmpl #0,%d0 | did ddb handle it? jne Lbrkpt3 | yes, done #endif #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/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
601
660
NetBSD/src:sys/arch/x68k/x68k/locore.s:17
addql #4,%sp CPUINFO_INCREMENT(CI_NINTR) INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra rei ENTRY_NOPROFILE(lev1intr) ENTRY_NOPROFILE(lev2intr) ENTRY_NOPROFILE(lev3intr) ENTRY_NOPROFILE(lev4intr) ENTRY_NOPROFILE(lev5intr) ENTRY_NOPROFILE(lev6intr) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG Lnotdma: ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
641
700
NetBSD/src:sys/arch/x68k/x68k/locore.s:18
ENTRY_NOPROFILE(lev7intr) addql #1,_C_LABEL(intr_depth) addql #1,_C_LABEL(intrcnt)+28 clrl %sp@- moveml #0xFFFF,%sp@- | save registers movl %usp,%a0 | and save movl %a0,%sp@(FR_SP) | the user stack pointer jbsr _C_LABEL(nmihand) | call handler movl %sp@(FR_SP),%a0 | restore movl %a0,%usp | user SP mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/x68k/x68k/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/x68k/x68k/locore.s
681
740