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/sun3/sun3x/locore.s:4
| Now turn off the transparent translation of the low 1GB. | (this also flushes the ATC) clrl %sp@- .long 0xf0170800 | pmove sp@,tt0 addql #4,%sp jra _C_LABEL(main) | main() (never returns) | That is all the assembly startup code we need on the sun3x! | The rest of this is like the hp300/locore.s where possible...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* (The MMU has a "boot" bit that forces access to the PROM) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #include <m68k/m68k/switch_subr.s> #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif /* * Load a new CPU Root ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3x/locore.s
161
218
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
* Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3x/locore.s
201
218
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
| Now turn off the transparent translation of the low 1GB. | (this also flushes the ATC) clrl %sp@- .long 0xf0170800 | pmove sp@,tt0 addql #4,%sp jra _C_LABEL(main) | main() (never returns) | That is all the assembly startup code we need on the sun3x! | The rest of this is like the hp300/locore.s where possible...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* (The MMU has a "boot" bit that forces access to the PROM) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3x/locore.s
161
219
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
/* * Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3x/locore.s
201
219
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* (The MMU has a "boot" bit that forces access to the PROM) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
/* * Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3x/locore.s
201
251
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
| Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are never | referenced by any C code, and if the leading underscore | ever goes away, these lines turn into syntax errors... .set _KERNBASE3X,KERNBASE3X .set _MONSTART,SUN3X_MONSTART .set _PROM_BASE,SUN3X_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3x/locore.s
241
251
NetBSD/src:sys/arch/sun3/sun3x/locore.s:3
movl #0x3F8107,%a0@ | map the low 1GB v=p with the .long 0xf0100800 | transparent translation reg0 | [ pmove a0@, tt0 ] | In order to map the kernel into high memory we will copy the root table | entry which maps the 16 megabytes of memory starting at 0x0 into the | entry which maps the 16 megabytes starting at...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3x/locore.s
81
140
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
| Now turn off the transparent translation of the low 1GB. | (this also flushes the ATC) clrl %sp@- .long 0xf0170800 | pmove sp@,tt0 addql #4,%sp jra _C_LABEL(main) | main() (never returns) | That is all the assembly startup code we need on the sun3x! | The rest of this is like the hp300/locore.s where possible...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ GLOBAL(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 btst #5,%sp@(FR_HW) | was supervisor mode? jne _ASM_LABEL(kbrkpt) | yes, k...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | 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@(FR_SIZE),%a1 | end of our fram...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
* (The MMU has a "boot" bit that forces access to the PROM) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
ENTRY(getcrp) movl %sp@(4),%a0 | arg1: &crp pmove %crp,%a0@ | *crpp = %crp rts /* * Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun3/sun3x/locore.s
281
337
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
.align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are never | referenced by any C code, and if the leading underscore | ever goes away, these lines turn into syntax errors... .set _KERNBASE3X,KERNBAS...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun3/sun3x/locore.s
321
337
NetBSD/src:sys/arch/sun3/sun3x/locore.s:3
movl #0x3F8107,%a0@ | map the low 1GB v=p with the .long 0xf0100800 | transparent translation reg0 | [ pmove a0@, tt0 ] | In order to map the kernel into high memory we will copy the root table | entry which maps the 16 megabytes of memory starting at 0x0 into the | entry which maps the 16 megabytes starting at...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
4048739f64f9f6795ecd90b007c27a0d9eb0187c
github
kernel
https://github.com/NetBSD/src/blob/4048739f64f9f6795ecd90b007c27a0d9eb0187c/sys/arch/sun3/sun3x/locore.s
81
140
NetBSD/src:sys/arch/sun3/sun3x/locore.s:3
movl #0x3F8107,%a0@ | map the low 1GB v=p with the .long 0xf0100800 | transparent translation reg0 | [ pmove a0@, tt0 ] | In order to map the kernel into high memory we will copy the root table | entry which maps the 16 megabytes of memory starting at 0x0 into the | entry which maps the 16 megabytes starting at...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
81
140
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
| Now turn off the transparent translation of the low 1GB. | (this also flushes the ATC) clrl %sp@- .long 0xf0170800 | pmove sp@,tt0 addql #4,%sp | Now that _bootstrap() is done using the PROM functions, | we can safely set the sfc/dfc to something != FC_CONTROL moveq #FC_USERD,%d0 | make movs access "user data"...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
| 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 PSW notw %d1 | XXX no support for T0 on 680[234]0 andw #PSL_TS,%d1 | from...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
| 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 bgt Lbrkpt1 Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
#ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot loader. This w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTR...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
| %d0 = arg = (usecs << 8) movl %sp@(4),%d0 | %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 jra L_delay /* Jump into the loop! */ /* * Align the branch target of the loop to a half-line (8-byte) * boundary to minimize cache effects. This guarantees both * that there will be no prefetch stalls due...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3x/locore.s
321
353
NetBSD/src:sys/arch/sun3/sun3x/locore.s:3
movl #0x3F8107,%a0@ | map the low 1GB v=p with the .long 0xf0100800 | transparent translation reg0 | [ pmove a0@, tt0 ] | In order to map the kernel into high memory we will copy the root table | entry which maps the 16 megabytes of memory starting at 0x0 into the | entry which maps the 16 megabytes starting at...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
81
140
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
.long 0xf0170800 | pmove sp@,tt0 addql #4,%sp | Now that _bootstrap() is done using the PROM functions, | we can safely set the sfc/dfc to something != FC_CONTROL moveq #FC_USERD,%d0 | make movs access "user data" movc %d0,%sfc | space for copyin/copyout movc %d0,%dfc | Setup process zero user/kernel stacks. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* 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 simply passed on to trap(). */ GLOBAL(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Ch...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
ASLOCAL(kbrkpt) | Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If we are not on tmpstk switch to it. | (so debugger can change...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. Most are auto-vectored, * and hard-wired the same way on all sun3 models. * Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .ali...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
#ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. * XXX: Currently this is set based on the CPU model, * XXX: but this should be de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3x/locore.s
321
365
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. Most are auto-vectored, * and hard-wired the same way on all sun3 models. * Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .ali...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
/* suline() */ #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. * XXX: Current...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun3/sun3x/locore.s
321
367
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
.long 0xf0170800 | pmove sp@,tt0 addql #4,%sp | Now that _bootstrap() is done using the PROM functions, | we can safely set the sfc/dfc to something != FC_CONTROL moveq #FC_USERD,%d0 | make movs access "user data" movc %d0,%sfc | space for copyin/copyout movc %d0,%dfc | Setup process zero user/kernel stacks. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* FP exceptions. */ GLOBAL(fpfline) 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 GLOBAL(fpunsupp) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
/* * 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 simply passed on to trap(). */ GLOBAL(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
ASLOCAL(kbrkpt) | Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If we are not on tmpstk switch to it. | (so debugger can change...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
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. Most are auto-vectored, * and hard-wired the same way on all sun3 models. * Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
#include <m68k/m68k/switch_subr.s> /* suline() */ #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3x/locore.s:10
ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock ra...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
0c68c1d9688de20a9c362bd84a74965ede947609
github
kernel
https://github.com/NetBSD/src/blob/0c68c1d9688de20a9c362bd84a74965ede947609/sys/arch/sun3/sun3x/locore.s
361
408
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* FP exceptions. */ GLOBAL(fpfline) 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 GLOBAL(fpunsupp) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
/* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment. */ GLOBAL(badtrap) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save std frame regs jbsr _C_LABEL(straytrap) | report moveml %sp@+,#0xFFFF | restore regs addql #4,%sp | stack adjust count ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
jbsr _C_LABEL(cachectl1) | do it lea %sp@(16),%sp | pop args jra _ASM_LABEL(rei) | all done /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ GLOBAL(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Check PSW and se...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. Most are auto-vectored, * and hard-wired the same way on all sun3 models. * Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .ali...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3x/locore.s:10
ASGLOBAL(rei) #ifdef DIAGNOSTIC tstl _C_LABEL(panicstr) | have we panicked? jne Ldorte | yes, do not make matters worse #endif tstl _C_LABEL(astpending) | AST pending? jeq Ldorte | no, done Lrei1: btst #5,%sp@ | yes, are we returning to user mode? jne Ldorte | no, done movw #PSL_LOWIPL,%sr | lower SPL ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
rte | real return /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot loader. This works on Sun machines because the * interrupt vector table for reset is NOT at address zero. * (The MMU has a "boot" bit that forces a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
* void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTRY(getcrp) movl %sp@(4),%a0 | arg1: &crp pmove %crp,%a0@ | *crpp = %crp rts /*...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
* Align the branch target of the loop to a half-line (8-byte) * boundary to minimize cache effects. This guarantees both * that there will be no prefetch stalls due to cache line burst * operations and that the loop will run from a single cache * half-line. */ #ifdef __ELF__ .align 8 #else .align 3 #endif ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3x/locore.s
481
506
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
.long 0xf0170800 | pmove sp@,tt0 addql #4,%sp | Now that _bootstrap() is done using the PROM functions, | we can safely set the sfc/dfc to something != FC_CONTROL moveq #FC_USERD,%d0 | make movs access "user data" movc %d0,%sfc | space for copyin/copyout movc %d0,%dfc | Setup process zero user/kernel stacks. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* Trap/interrupt vector routines */ #include <m68k/m68k/trap_subr.s> /* * FP exceptions. */ GLOBAL(fpfline) 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 GLOBAL(fpunsupp) clrl %sp@- | stack adjust co...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
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. */ GLOBAL(badtrap) cl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
movl _C_LABEL(curlwp),%a0 movl %a0@(L_PROC),%sp@- | push curproc 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) trap. Kernel-mode is special....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
moveq #T_TRAP15,%d0 btst #5,%sp@(FR_HW) | was supervisor mode? jne _ASM_LABEL(kbrkpt) | yes, kernel brkpt jra _ASM_LABEL(fault) | no, user-mode fault ASLOCAL(kbrkpt) | Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock out interrupts...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
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. Most ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3x/locore.s:10
* drop the IPL to allow device interrupts. * * This code is complicated by the fact that sendsig may have been called * necessitating a stack cleanup. */ ASGLOBAL(rei) #ifdef DIAGNOSTIC tstl _C_LABEL(panicstr) | have we panicked? jne Ldorte | yes, do not make matters worse #endif tstl _C_LABEL(astpending) | A...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP Ldorte: rte | real return /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot lo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTRY(get...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
| %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 jra L_delay /* Jump into the loop! */ /* * Align the branch target of the loop to a half-line (8-byte) * boundary to minimize cache effects. This guarantees both * that there will be no prefetch stalls due to cache line burst * operations and that t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3x/locore.s
481
511
NetBSD/src:sys/arch/sun3/sun3x/locore.s:4
.long 0xf0170800 | pmove sp@,tt0 addql #4,%sp | Now that _bootstrap() is done using the PROM functions, | we can safely set the sfc/dfc to something != FC_CONTROL moveq #FC_USERD,%d0 | make movs access "user data" movc %d0,%sfc | space for copyin/copyout movc %d0,%dfc | Setup process zero user/kernel stacks. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
* Trap/interrupt vector routines */ #include <m68k/m68k/trap_subr.s> GLOBAL(buserr) tstl _C_LABEL(nofault) | device probe? jeq _C_LABEL(addrerr) | no, handle as usual movl _C_LABEL(nofault),%sp@- | yes, jbsr _C_LABEL(longjmp) | longjmp(nofault) GLOBAL(addrerr) clrl %sp@- | stack adjust count moveml #0xFFFF,%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3x/locore.s:6
btst #15,%d0 | FC set? jeq Lbe10 | no, done addql #2,%d1 | yes, adjust address jra Lbe10 | done Lbe4: movl %a1@(36),%d1 | long format, use stage B address btst #15,%d0 | FC set? jeq Lbe10 | no, all done subql #2,%d1 | yes, adjust address Lbe10: movl %d1,%sp@- | push fault VA movl %d0,%sp@- | a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3x/locore.s:7
andw #0xc0,%d0 | write protect is set on page: cmpw #0x40,%d0 | was it read cycle? jeq Lisberr1 | yes, was not WPE, must be bus err /* End of MMU-specific bus error code. */ Lismerr: movl #T_MMUFLT,%sp@- | show that we are an MMU fault jra _ASM_LABEL(faultstkadj) | and deal with it Lisaerr: movl #T_ADDRERR,%s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3x/locore.s:8
moveml #0xFFFF,%sp@- | save user registers 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 tstb %a0@ | null state frame? jeq Lfptnull | yes, safe c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3x/locore.s:9
addql #4,%sp | pop syscall arg movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%usp | user SP moveml %sp@+,#0x7FFF | restore most registers addql #8,%sp | pop SP and stack adjust jra _ASM_LABEL(rei) | all done /* * Trap 12 is the entry point for the cachectl "syscall" * cachectl(command, addr, length...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3x/locore.s:10
jeq _ASM_LABEL(kbrkpt) | yes, kernel brkpt jra _ASM_LABEL(fault) | no, user-mode fault /* * Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ GLOBAL(trap15...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack point...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
/* * Emulation of VAX REI instruction. * * This code is (mostly) un-altered from the hp300 code, * except that sun machines do not need a simulated SIR * because they have a real software interrupt register. * * This code deals with checking for and servicing ASTs * (profiling, scheduling) and software interrup...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
movl %sp@(FR_SP),%a0 | restore user SP 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 rte | and do real RTE Laststkadj: lea %sp@(FR_HW),%a1 | pointer ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/locore.s:14
#ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. * XXX: Currently this is set based on the CPU model, * XXX: but this should be determined at run time... */ GLOBAL(_delay) | %d0 = arg...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3x/locore.s
561
604
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
movl %sp@(FR_SP),%a0 | restore user SP 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 rte | and do real RTE Laststkadj: lea %sp@(FR_HW),%a1 | pointer ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/locore.s:14
*/ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> /* suline() */ #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Lo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
pmove %crp,%a0@ | *crpp = %crp rts /* * Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4),%a1 | VA ptestr #5,%a1@,#7,%a0 | %a0 = addr of PTE movl %a0,%d0 | Result in %d0 (not a pointer return) rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * T...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun3/sun3x/locore.s
561
614
NetBSD/src:sys/arch/sun3/sun3x/locore.s:16
subl %d1,%d0 jgt L_delay rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are never | referenced by any C code, and if the leading underscore | ever goes away, these lines turn into syntax errors... .set _KERNBASE3X,KERNBASE3X .set _MONSTART,SUN3X_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun3/sun3x/locore.s
601
614
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack point...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Emulation of VAX REI instruction. * * This code is (mostly) un-altered from the hp300 code, * except that sun machines do not need a simulated SIR * because they have a real software interrupt register. * * This code deals with checking f...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
pea %sp@(12) | fp == address of trap frame jbsr _C_LABEL(trap) | go handle it lea %sp@(16),%sp | pop value args movl %sp@(FR_SP),%a0 | restore user SP 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/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> /* suline() */ #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
pea %sp@(12) | fp == address of trap frame jbsr _C_LABEL(trap) | go handle it lea %sp@(16),%sp | pop value args movl %sp@(FR_SP),%a0 | restore user SP 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/locore.s:14
/* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> /* suline() */ #ifdef DEBUG .data ASGLOBAL(fulltflush) .long 0 ASGL...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTRY(getcrp) movl %sp@(4),%a0 | arg1: &crp pmove %crp,%a0@ | *crpp = %crp rts /* * Get the physical address of the PTE for a given VA. */ ENTRY(ptest_addr) movl %sp@(4...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3x/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3x/locore.s:16
* half-line. */ #ifdef __ELF__ .align 8 #else .align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are never | referenced by any C code, and if the leading underscore | ever goes away, these lines tu...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3x/locore.s
601
622
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack point...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* interrupt counters (needed by vmstat) */ GLOBAL(intrnames) .asciz "spur" | 0 .asciz "lev1" | 1 .asciz "lev2" | 2 .asciz "lev3" | 3 .asciz "lev4" | 4 .asciz "clock" | 5 .asciz "lev6" | 6 .asciz "nmi" | 7 GLOBAL(eintrnames) .data .even GL...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
ASGLOBAL(rei) #ifdef DIAGNOSTIC tstl _C_LABEL(panicstr) | have we panicked? jne Ldorte | yes, do not make matters worse #endif tstl _C_LABEL(astpending) | AST pending? jeq Ldorte | no, done Lrei1: btst #5,%sp@ | yes, are we returning to user mode? jne Ldorte | no, done movw #PSL_LOWIPL,%sr | lower SPL ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/locore.s:14
rte | real return /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot loader. This works on Sun machines because the * interrupt vector table for reset is NOT at address zero. * (The MMU has a "boot" bit that forces a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts /* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3x/locore.s:16
* _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. * XXX: Currently this is set based on the CPU model, * XXX: but this should be determined at run time... */ GLOBAL(_delay) | %d0 = arg = (usecs...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3x/locore.s
601
641
NetBSD/src:sys/arch/sun3/sun3x/locore.s:11
Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack point...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3x/locore.s:12
.align 2 #endif GLOBAL(_isr_autovec) INTERRUPT_SAVEREG jbsr _C_LABEL(isr_autovec) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) | Handler ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3x/locore.s:13
.asciz "lev6" | 6 .asciz "nmi" | 7 GLOBAL(eintrnames) .data .even GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0 GLOBAL(eintrcnt) .text /* * Emulation of VAX REI instruction. * * This code is (mostly) un-altered from the hp300 code, * except that sun machines do not need a simulated SIR * because they have a real so...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3x/locore.s:14
clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl %usp,%a1 | including movl %a1,%sp@(FR_SP) | the users SP clrl %sp@- | VA == none clrl %sp@- | code == none movl #T_ASTFLT,%sp@- | type == async system trap pea %sp@(12) | fp == address of trap frame jbsr _C_LABEL(trap) | go ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
*/ #include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif .text /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3x/locore.s:16
/* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTRY(getcrp) movl %sp@(4),%a0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3x/locore.s:17
jra L_delay /* Jump into the loop! */ /* * Align the branch target of the loop to a half-line (8-byte) * boundary to minimize cache effects. This guarantees both * that there will be no prefetch stalls due to cache line burst * operations and that the loop will run from a single cache * half-line. */ #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3x/locore.s
641
669
NetBSD/src:sys/arch/sun3/sun3x/locore.s:16
/* * Load a new CPU Root Pointer (CRP) into the MMU. * void loadcrp(struct mmu_rootptr *); */ ENTRY(loadcrp) movl %sp@(4),%a0 | arg1: &CRP movl #CACHE_CLR,%d0 movc %d0,%cacr | invalidate cache(s) pflusha | flush entire TLB pmove %a0@,%crp | load new user root pointer rts ENTRY(getcrp) movl %sp@(4),%a0 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun3/sun3x/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3x/locore.s:17
ENTRY(_splraise) clrl %d0 movw %sr,%d0 movl %d0,%d1 andl #PSL_HIGHIPL,%d1 | old &= PSL_HIGHIPL cmpl %sp@(4),%d1 | (old - new) bge Lsplr movl %sp@(4),%d1 movw %d1,%sr Lsplr: rts /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * whi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun3/sun3x/locore.s
641
695
NetBSD/src:sys/arch/sun3/sun3x/locore.s:18
L_delay: subl %d1,%d0 jgt L_delay rts | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these symbols are never | referenced by any C code, and if the leading underscore | ever goes away, these lines turn into syntax errors... .set _KERNBASE3X,KERNBASE3X .set _MONST...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun3/sun3x/locore.s
681
695
NetBSD/src:sys/arch/sun3/sun3x/locore.s:15
*/ #include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif .text /* * Primitives */ /* * Use common m68k support routines. */ #include <m68k/m68k/support.s> /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun3/sun3x/locore.s
561
620