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/sun3/locore.s:9
* 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 << 8) movl %sp@(4),%d0 | %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 jra L_delay /* Jump into the loop! *...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:4
L_per_pmeg: movsb %a0@,%d1 | copy segmap entry movsb %d1,%a1@ addl #NBSG,%a0 | increment pointers addl #NBSG,%a1 subql #1,%d0 | decrement count bgt L_per_pmeg | Kernel is now double mapped at zero and KERNBASE. | Force a long jump to the relocated code (high VA). movl #IC_CLEAR,%d0 | Flush the I-cache mov...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
| Will do fpu initialization during autoconfig (see fpu.c) | The interrupt vector table and stack are now ready. | Interrupts will be enabled later, AFTER autoconfiguration | is finished, to avoid spurrious interrupts. /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
| 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 _ASM_LABEL(kbrkpt) | yes, kernel brkpt jra _ASM_LABEL(fault) | no, user-mode fault /* * Trap 15 is used for: * - GDB ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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 | 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
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 works on Sun machines because the * interrupt ve...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr */ /* * _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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
/* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw %fp,#0 moveml #0x3000,%sp@- movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%fp),%d1 | d1 = sme moveq #FC_CONTROL,%d0 movl #CONTEXT_REG,%a0 | a0 = ctxreg movc %sfc...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun3/sun3/locore.s
361
401
NetBSD/src:sys/arch/sun3/sun3/locore.s:4
L_per_pmeg: movsb %a0@,%d1 | copy segmap entry movsb %d1,%a1@ addl #NBSG,%a0 | increment pointers addl #NBSG,%a1 subql #1,%d0 | decrement count bgt L_per_pmeg | Kernel is now double mapped at zero and KERNBASE. | Force a long jump to the relocated code (high VA). movl #IC_CLEAR,%d0 | Flush the I-cache mov...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
| Will do fpu initialization during autoconfig (see fpu.c) | The interrupt vector table and stack are now ready. | Interrupts will be enabled later, AFTER autoconfiguration | is finished, to avoid spurrious interrupts. /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
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 works on Sun machines because the * interrupt ve...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
*/ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr */ /* * _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: Curren...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
| Will do fpu initialization during autoconfig (see fpu.c) | The interrupt vector table and stack are now ready. | Interrupts will be enabled later, AFTER autoconfiguration | is finished, to avoid spurrious interrupts. /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ GLOBAL(fpfault) clrl %sp@- | stack adjust count 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 |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
| 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 _ASM_LABEL(kbrkpt) | yes, kernel brkpt jra _ASM_LABEL(fault) | no, user-mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
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 | 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
#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 works on Sun machines because the * inter...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
* Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr */ /* * _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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
rts /* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw %fp,#0 moveml #0x3000,%sp@- movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%fp),%d1 | d1 = sme moveq #FC_CONTROL,%d0 movl #CONTEXT_REG,%a0 | a0 = ctxreg movc...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun3/sun3/locore.s
401
443
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ GLOBAL(fpfault) clrl %sp@- | stack adjust count 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 |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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 see what happen. | T=0 S=0 (shoul...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
| 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 the stack pointe...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
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 .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SA...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
/* suline() */ /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadus...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
/* * 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 #e...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
401
458
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
movsb %d1,%a1@ | set segmap dbf %d0,1b | loop setting each ctx movsb %d2,%a0@ | restore ctx movc %d3,%dfc | restore dfc moveml %sp@+,#0x000c unlk %fp 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun3/sun3/locore.s
441
458
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ GLOBAL(fpfault) clrl %sp@- | stack adjust count 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 |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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) * command in %d0, addr in %a1, length in %d1 */ GLOBAL(trap12) movl _C_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
/* * 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) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 btst #5,%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
| 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 pointer may have been modified, or | data below it modified (by ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
* 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 access to the PROM) */ /*...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
/* loadustp, ptest_addr */ /* * _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... */ GLOB...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%fp),%d1 | d1 = sme moveq #FC_CONTROL,%d0 movl #CONTEXT_REG,%a0 | a0 = ctxreg movc %sfc,%d3 | d3 = oldsfc movc %d0,%sfc movsb %a0@,%d2 andi #7,%d2 | d2 = oldctx movc %d3,%sfc | restore sfc, d3 av...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun3/sun3/locore.s
441
475
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* and may cause signal delivery, we need to test for stack adjustment * after the trap call. */ GLOBAL(fpfault) clrl %sp@- | stack adjust count 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 |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
moveml #0xFFFF,%sp@- | save user registers movl %usp,%a0 | save the user SP movl %a0,%sp@(FR_SP) | in the savearea movl %d0,%sp@- | push syscall number jbsr _C_LABEL(syscall) | handle it addql #4,%sp | pop syscall arg movl %sp@(FR_SP),%a0 | grab and restore movl %a0,%usp | user SP moveml %sp@+,#0x7F...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
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 | 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
GLOBAL(_isr_clock) INTERRUPT_SAVEREG 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
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 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? ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
#define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> /* suline() */ /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICP...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
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 the loop will run from a ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
| Will do fpu initialization during autoconfig (see fpu.c) | The interrupt vector table and stack are now ready. | Interrupts will be enabled later, AFTER autoconfiguration | is finished, to avoid spurrious interrupts. /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
jra _ASM_LABEL(fault) | do it /* * 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. */ GLOBAL(fpfault) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
/* * Trap 0 is for system calls */ GLOBAL(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 %d0,%sp@- | push syscall number jbsr _C_LABEL(syscall) | handle it addql #4,%sp | pop syscall arg m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
| 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/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
| 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/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
#ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG 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 * beca...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
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/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
*/ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> /* suline() */ /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /*...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
*/ GLOBAL(_delay) | %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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:14
movsb %a0@,%d2 andi #7,%d2 | d2 = oldctx movc %d3,%sfc | restore sfc, d3 avail movc %dfc,%d3 | d3 = olddfc movc %d0,%dfc movl #(CONTEXT_NUM - 1),%d0 | d0 = ctx number 1: movsb %d0,%a0@ | change to ctx movsb %d1,%a1@ | set segmap dbf %d0,1b | loop setting each ctx movsb %d2,%a0@ | restore ctx movc %d3...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun3/sun3/locore.s
521
546
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
| Will do fpu initialization during autoconfig (see fpu.c) | The interrupt vector table and stack are now ready. | Interrupts will be enabled later, AFTER autoconfiguration | is finished, to avoid spurrious interrupts. /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; w...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
btst #12,%d0 | RB set? jeq LbeX0 | no, test RC bset #14,%d0 | yes, must set FB movw %d0,%a1@(10) | for hardware too LbeX0: btst #13,%d0 | RC set? jeq LbeX1 | no, skip bset #15,%d0 | yes, must set FC movw %d0,%a1@(10) | for hardware too LbeX1: btst #8,%d0 | data fault? jeq Lbe0 | no, check for...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
/* * the sun3 specific code * * our mission: figure out whether what we are looking at is * bus error in the UNIX sense, or * a memory error i.e a page fault * * [this code replaces similarly mmu specific code in the hp300 code] */ sun3_mmu_specific: clrl %d0 | make sure top bits are cle...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
GLOBAL(fpunsupp) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it /* * Handles all other FP coprocessor exceptions. * Note that since some FP exceptions generate mid-instruction frames * and may cause signa...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
281
340
NetBSD/src:sys/arch/sun3/sun3/locore.s:9
jbsr _C_LABEL(straytrap) | report moveml %sp@+,#0xFFFF | restore regs addql #4,%sp | stack adjust count jra _ASM_LABEL(rei) | all done /* * Trap 0 is for system calls */ GLOBAL(trap0) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save user registers movl %usp,%a0 | save the user SP movl %a0,%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
321
380
NetBSD/src:sys/arch/sun3/sun3/locore.s:10
*/ GLOBAL(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 %sp@(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
361
420
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
| If we are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the temporary stack movl %sp,%a0 | %a0=src lea _ASM_LABEL(tmpstk)-96,%a1 | %a1=dst movl %a1,%sp | sp=new frame moveq #FR_SIZE,%d1 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
* Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* 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) /* * Emulation of VAX REI instruction. * * This code is (mostly) un-alt...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
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 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:14
* (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> /* suline() */ /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3/locore.s:15
* 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 << 8) movl %sp@(4),%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
movl 12(%fp),%d1 | d1 = sme moveq #FC_CONTROL,%d0 movl #CONTEXT_REG,%a0 | a0 = ctxreg movc %sfc,%d3 | d3 = oldsfc movc %d0,%sfc movsb %a0@,%d2 andi #7,%d2 | d2 = oldctx movc %d3,%sfc | restore sfc, d3 avail movc %dfc,%d3 | d3 = olddfc movc %d0,%dfc movl #(CONTEXT_NUM - 1),%d0 | d0 = ctx number 1: movsb...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun3/sun3/locore.s
601
631
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
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 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
| If we are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the temporary stack movl %sp,%a0 | %a0=src lea _ASM_LABEL(tmpstk)-96,%a1 | %a1=dst movl %a1,%sp | sp=new frame moveq #FR_SIZE,%d1 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
/* * 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 .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_REST...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
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 clrl %sp@- | stack adjust moveml #0xFFFF,%sp@- | save all registers movl ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:15
/* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr */ /* * _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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
jgt L_delay rts /* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw %fp,#0 moveml #0x3000,%sp@- movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%fp),%d1 | d1 = sme moveq #FC_CONTROL,%d0 movl #CONTEXT_REG,%a0 | a0 =...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun3/sun3/locore.s
601
644
NetBSD/src:sys/arch/sun3/sun3/locore.s:15
movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr */ /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
#else .align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts /* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw %fp,#0 moveml #0x3000,%sp@- movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%fp),%d1 | d1 = sme move...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun3/sun3/locore.s
601
649
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
| If we are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the temporary stack movl %sp,%a0 | %a0=src lea _ASM_LABEL(tmpstk)-96,%a1 | %a1=dst movl %a1,%sp | sp=new frame moveq #FR_SIZE,%d1 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
/* * 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 .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_REST...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
* * 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 interrupts (network, softclock). * We check for ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:14
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 to HW frame addql #8,%a1 | source pointer movl %a1,%a0 | source addw %d0,%a0 | + hole size = dest pointer movl %...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3/locore.s:15
* 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() */ /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
561
620
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
* XXX: Currently this is set based on the CPU model, * XXX: but this should be determined at run time... */ GLOBAL(_delay) | %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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
movc %sfc,%d3 | d3 = oldsfc movc %d0,%sfc movsb %a0@,%d2 andi #7,%d2 | d2 = oldctx movc %d3,%sfc | restore sfc, d3 avail movc %dfc,%d3 | d3 = olddfc movc %d0,%dfc movl #(CONTEXT_NUM - 1),%d0 | d0 = ctx number 1: movsb %d0,%a0@ | change to ctx movsb %d1,%a1@ | set segmap dbf %d0,1b | loop setting each...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun3/sun3/locore.s
641
668
NetBSD/src:sys/arch/sun3/sun3/locore.s:11
| If we are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the temporary stack movl %sp,%a0 | %a0=src lea _ASM_LABEL(tmpstk)-96,%a1 | %a1=dst movl %a1,%sp | sp=new frame moveq #FR_SIZE,%d1 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
401
460
NetBSD/src:sys/arch/sun3/sun3/locore.s:12
/* * 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 */ /* * This is the common auto-vector interrupt handler, * for which the CPU provides the vector=0x18+level. * These are installed in the interrupt vect...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
441
500
NetBSD/src:sys/arch/sun3/sun3/locore.s:13
#endif GLOBAL(_isr_vectored) INTERRUPT_SAVEREG jbsr _C_LABEL(isr_vectored) 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 .a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
481
540
NetBSD/src:sys/arch/sun3/sun3/locore.s:14
* 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) | AST pending? jeq Ldorte | no, done Lrei1: bt...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
521
580
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
/* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
* 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 L_delay: subl %d1,%d0 jgt L_delay rts /* * void set_segmap_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
641
696
NetBSD/src:sys/arch/sun3/sun3/locore.s:18
movsb %d2,%a0@ | restore ctx movc %d3,%dfc | restore dfc moveml %sp@+,#0x000c unlk %fp 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 sy...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun3/sun3/locore.s
681
696
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
/* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* loadustp, ptest_addr ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
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 * which should be set based on the CPU clock rat...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun3/sun3/locore.s
641
700
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
/* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ ENTRY(getvbr) movc %vbr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
clrl %d0 movw %sr,%d0 movl %sp@(4),%d1 movw %d1,%sr rts 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. *...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun3/sun3/locore.s
641
700
NetBSD/src:sys/arch/sun3/sun3/locore.s:18
#ifdef __ELF__ .align 8 #else .align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts /* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw %fp,#0 moveml #0x3000,%sp@- movl 8(%fp),%d3 | d3 = va andl #0xffffffc,%d3 bset #29,%d3 movl %d3,%a1 | a1 = ctrladdr, d3 avail movl 12(%...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun3/sun3/locore.s
681
731
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
/* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ ENTRY(getvbr) movc %vbr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
clrl %d0 movw %sr,%d0 movl %d0,%a0 rts ENTRY(_spl) clrl %d0 movw %sr,%d0 movl %sp@(4),%d1 movw %d1,%sr rts 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(un...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun3/sun3/locore.s
641
700
NetBSD/src:sys/arch/sun3/sun3/locore.s:18
* 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/sun3/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun3/sun3/locore.s
681
737
NetBSD/src:sys/arch/sun3/sun3/locore.s:19
dbf %d0,1b | loop setting each ctx movsb %d2,%a0@ | restore ctx movc %d3,%dfc | restore dfc moveml %sp@+,#0x000c unlk %fp 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 | ev...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun3/sun3/locore.s
721
737
NetBSD/src:sys/arch/sun3/sun3/locore.s:16
/* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache rts /* DCIA, DCIS */ /* * Invalidate data cache. */ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA, ecacheon, ecacheoff */ /* * Get callers curren...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun3/sun3/locore.s
601
660
NetBSD/src:sys/arch/sun3/sun3/locore.s:17
movl %sp@(4),%d0 movc %d0,%vbr rts /* loadustp, ptest_addr */ /* * Set processor priority level calls. Most are implemented with * inline asm expansions. However, we need one instantiation here * in case some non-optimized code makes external references. * Most places will use the inlined functions param.h su...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun3/sun3/locore.s
641
700
NetBSD/src:sys/arch/sun3/sun3x/locore.s:2
#include "opt_compat_sunos.h" #include "opt_kgdb.h" #include "opt_lockdebug.h" #include "assym.h" #include <machine/asm.h> #include <machine/trap.h> | Remember this is a fun project! .data GLOBAL(mon_crp) .long 0,0 | This is for kvm_mkdb, and should be the address of the beginning | of the kernel text segment (no...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3x/locore.s
41
100
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
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/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
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3x/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3x/locore.s:5
ASGLOBAL(fulltflush) .long 0 ASGLOBAL(fullcflush) .long 0 .text #endif /* * 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3x/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3x/locore.s
161
203
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
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3x/locore.s
81
140