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/sun2/sun2/locore.s:8
moveml #0xFFFF,%sp@- 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
| before restoring registers and returning. movl %sp@(FR_SP),%a0 | modified sp lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
/* * Use common m68k process/lwp switch and context save subroutines. */ #undef FPCOPROC #include <m68k/m68k/switch_subr.s> /* loadustp, ptest_addr */ #ifdef DIAGNOSTIC | Message for 68881 save/restore panic Lsr0: .asciz "m68881 save/restore" .even #endif /* * Save and restore 68881 state. */ ENTRY(m68881_save...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
| %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 /* * 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 * ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
movew _C_LABEL(enable_reg_soft), %d0 | get the result movsw %d0, SYSTEM_ENAB | install the result cmpw _C_LABEL(enable_reg_soft), %d0 bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts ENTRY(enable_reg_or) movc %dfc,%a1 | save current dfc moveq #FC_CONTROL, %d1 movc %d1, ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
441
476
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
| before restoring registers and returning. movl %sp@(FR_SP),%a0 | modified sp lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
* do not have to do it here. After identifying that we need an AST we * drop the IPL to allow device interrupts. * * This code is complicated by the fact that sendsig may have been called * necessitating a stack cleanup. */ ASGLOBAL(rei) #ifdef DIAGNOSTIC tstl _C_LABEL(panicstr) | have we panicked? jne Ldorte ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
movl %a1@-,%a0@- | copy movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP Ldorte: rte | real return /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibili...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c
github
kernel
https://github.com/NetBSD/src/blob/9a0dbd044da39c7df3a3ef7bf2d3ebc8cfae0f6c/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
| Note curpcb was already set in _bootstrap(). | 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_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation trap jra _ASM_LABEL(fault) | do it | Message for fpfault panic Lfp0: .asciz "fpfault" .even /* * Handles all other FP coprocessor exceptions. * Since we can never have an FP coprocessor, this just panics. */ GLOBAL(fpfault) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
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/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
* - 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, kernel brkpt jra _ASM_LABEL(fault) | n...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
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 frame movl %a1@-,%a0@- | copy ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
* * This code deals with checking for and servicing ASTs * (profiling, scheduling) and software interrupts (network, softclock). * We check for ASTs first, just like the VAX. To avoid excess overhead * the T_ASTFLT handling code will also check for software interrupts so we * do not have to do it here. After ide...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
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 %a1@-,%a0@- | copy movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and o...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
/* * Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * whic...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
subl %d1,%d0 jgt L_delay rts /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a soft * copy of what they think is in the enable register and loop * making a change until it sticks. This is apparently to * be concurrent-safe without disabling...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
cmpw _C_LABEL(enable_reg_soft), %d0 bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts /* * Use common m68k 16-bit aligned copy routines. */ #include <m68k/m68k/w16copy.s> | Define some addresses, mostly so DDB can print useful info. | Not using _C_LABEL() here because these ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
7a50df7f13f44282c494a158ccac105d4d8e3c64
github
kernel
https://github.com/NetBSD/src/blob/7a50df7f13f44282c494a158ccac105d4d8e3c64/sys/arch/sun2/sun2/locore.s
521
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
| Note curpcb was already set in _bootstrap(). | 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_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
moveq #0,%d0 movw %a1@(8),%d0 | grab SSW for fault processing movl %a1@(10),%d1 | fault address is as given in frame movl %d1,%sp@- | push fault VA movl %d0,%sp@- | and padded SSW movw %a1@(6),%d0 | get frame format/vector offset andw #0x0FFF,%d0 | clear out frame format cmpw #12,%d0 | address error vect...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
jra _ASM_LABEL(faultstkadj) | and deal with it Lisberr: movl #T_BUSERR,%sp@- | mark bus error jra _ASM_LABEL(faultstkadj) | and deal with it /* * FP exceptions. */ GLOBAL(fpfline) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULI,%d0 | denote as FP emulation trap jra _...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
moveml #0xFFFF,%sp@- | save std frame regs 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
| 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/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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 | set breakpoints in trap() if we wan...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
.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 * because they have a ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
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 handle it lea %sp@(16),%sp ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
6279c1e992621a887496dc9278adf6ed8aff06c5
github
kernel
https://github.com/NetBSD/src/blob/6279c1e992621a887496dc9278adf6ed8aff06c5/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
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 handle it lea %sp@(16),%sp ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
#include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif .text /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #undef FPCOPROC #include <m68k/m68k/switch_subr.s> /* loadustp, ptest_addr */ #ifdef DIAGNOSTIC | Message for 68881 s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
* _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/sun2/sun2/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
* register had to be treated this way, so on the sun3 they made * it memory-addressable so you could just use the single-instructions. */ ENTRY(enable_reg_and) movc %dfc,%a1 | save current dfc moveq #FC_CONTROL, %d1 movc %d1, %dfc | make movs access "control" movl %sp@(4), %d1 | get our AND mask clrl %d0 1: a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
c935f8294f8dbedb30d0ac8738963ee40ec9a39a
github
kernel
https://github.com/NetBSD/src/blob/c935f8294f8dbedb30d0ac8738963ee40ec9a39a/sys/arch/sun2/sun2/locore.s
561
606
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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 | set breakpoints in trap() if we wan...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
/* 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-altered from the hp300 code, * except that sun machines do not nee...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
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 %sp@- | code == none movl #T_ASTFLT,%sp@- | type == async system trap pea %sp@(12...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
/* * Use common m68k sigcode. */ #include <m68k/m68k/sigcode.s> #ifdef COMPAT_SUNOS #include <m68k/m68k/sunos_sigcode.s> #endif .text /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #undef FPCOPROC #include <m68k/m68k/switch_subr.s> /* loadustp, ptest_addr */ #ifd...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
#endif /* * _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 = ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
* I dunno, but it may jive with sun3/intreg.c using the single-instruction * bit operations and the sun3 intreg being memory-addressable, * i.e., once the sun2 was designed they realized the enable * register had to be treated this way, so on the sun3 they made * it memory-addressable so you could just use the sing...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
703d1d4836bbf6504f494e94d6287e898624ade1
github
kernel
https://github.com/NetBSD/src/blob/703d1d4836bbf6504f494e94d6287e898624ade1/sys/arch/sun2/sun2/locore.s
561
609
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
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 %sp@- | code == none movl #T_ASTFLT,%sp@- | type == async system trap pea %sp@(12...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
/* * Use common m68k sigcode. */ #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. */ #undef F...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _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, ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
* strange behavior in SunOS' locore.o, where they keep a soft * copy of what they think is in the enable register and loop * making a change until it sticks. This is apparently to * be concurrent-safe without disabling interrupts. Why you * can't just disable interrupts while mucking with the register * I dunno,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun2/sun2/locore.s
561
614
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
* Use common m68k 16-bit aligned copy routines. */ #include <m68k/m68k/w16copy.s> | 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......
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
9ded135d26381ecef53f4a4fe2673ca1a63a0c55
github
kernel
https://github.com/NetBSD/src/blob/9ded135d26381ecef53f4a4fe2673ca1a63a0c55/sys/arch/sun2/sun2/locore.s
601
614
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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 | set breakpoints in trap() if we wan...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
/* 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) /* interrupt counters (needed by vmstat) */ GLOBAL(intrnames) .asciz "spur" | 0 .asciz "lev1" | 1 .asciz "lev2" | 2 .asciz "lev3" | 3 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
* (profiling, scheduling) and software interrupts (network, softclock). * We check for ASTs first, just like the VAX. To avoid excess overhead * the T_ASTFLT handling code will also check for software interrupts so we * do not have to do it here. After identifying that we need an AST we * drop the IPL to allow de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
addql #8,%a1 | source pointer movl %a1,%a0 | source addw %d0,%a0 | + hole size = dest pointer movl %a1@-,%a0@- | copy movl %a1@-,%a0@- | 8 bytes movl %a0,%sp@(FR_SP) | new SSP moveml %sp@+,#0x7FFF | restore user registers movl %sp@,%sp | and our SP Ldorte: rte | real return /* * Initialization...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
*/ #undef FPCOPROC #include <m68k/m68k/switch_subr.s> /* loadustp, ptest_addr */ #ifdef DIAGNOSTIC | Message for 68881 save/restore panic Lsr0: .asciz "m68881 save/restore" .even #endif /* * Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
/* * 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/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts ENTRY(enable_reg_or) movc %dfc,%a1 | save current dfc moveq #FC_CONTROL, %d1 movc %d1, %dfc | make movs access "control" movl %sp@(4), %d1 | get our OR mask clrl %d0 1: orw %d1, _C_LABEL(enable_reg_soft) | do our OR move...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
44ce13b2c4665234fd2e3670e5cff2eab40c6199
github
kernel
https://github.com/NetBSD/src/blob/44ce13b2c4665234fd2e3670e5cff2eab40c6199/sys/arch/sun2/sun2/locore.s
601
633
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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 | set breakpoints in trap() if we wan...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
/* * This is the common auto-vector interrupt handler, * for which the CPU provides the vector=0x18+level. * These are installed in the interrupt vector table. */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_autovec) INTERRUPT_SAVEREG jbsr _C_LABEL(isr_autovec) INTERRUPT_RESTOREREG jra _ASM_LABEL...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
401
460
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
/* 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 GLOBAL(intrcnt) .long 0,0,0,0,0,0,0,0 GLOBAL(eintrcnt) .text /* * Em...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
441
500
NetBSD/src:sys/arch/sun2/sun2/locore.s:13
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 clrl %sp@- | stack adjust move...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
481
540
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
/* * Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * whic...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
L_delay: subl %d1,%d0 jgt L_delay rts /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a soft * copy of what they think is in the enable register and loop * making a change until it sticks. This is apparently to * be concurrent-safe without...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
601
660
NetBSD/src:sys/arch/sun2/sun2/locore.s:17
movsw %d0, SYSTEM_ENAB | install the result cmpw _C_LABEL(enable_reg_soft), %d0 bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts /* * Use common m68k 16-bit aligned copy routines. */ #include <m68k/m68k/w16copy.s> | Define some addresses, mostly so DDB can print useful i...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
999c8e0aca9a0dea255e3b4ffad9384faa719e09
github
kernel
https://github.com/NetBSD/src/blob/999c8e0aca9a0dea255e3b4ffad9384faa719e09/sys/arch/sun2/sun2/locore.s
641
661
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
* 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/sun2/sun2/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
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 #ifdef DIAGNOSTIC | Message for 68881 save/restore panic ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/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 = (u...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun2/sun2/locore.s
601
660
NetBSD/src:sys/arch/sun2/sun2/locore.s:17
* i.e., once the sun2 was designed they realized the enable * register had to be treated this way, so on the sun3 they made * it memory-addressable so you could just use the single-instructions. */ ENTRY(enable_reg_and) movc %dfc,%a1 | save current dfc moveq #FC_CONTROL, %d1 movc %d1, %dfc | make movs access "c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
451f3d23c3aff3c1b4b35a29f67dc03b9c88f913
github
kernel
https://github.com/NetBSD/src/blob/451f3d23c3aff3c1b4b35a29f67dc03b9c88f913/sys/arch/sun2/sun2/locore.s
641
687
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
* 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/sun2/sun2/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
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/sun2/sun2/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
* Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine depends on the variable: delay_divisor * which sh...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun2/sun2/locore.s
601
660
NetBSD/src:sys/arch/sun2/sun2/locore.s:17
jgt L_delay rts /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a soft * copy of what they think is in the enable register and loop * making a change until it sticks. This is apparently to * be concurrent-safe without disabling interrupts. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2eefce19f92c3c2d4969dc54ae1162d132c6f20
github
kernel
https://github.com/NetBSD/src/blob/f2eefce19f92c3c2d4969dc54ae1162d132c6f20/sys/arch/sun2/sun2/locore.s
641
699
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
* 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/sun2/sun2/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
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/sun2/sun2/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
.asciz "m68881 save/restore" .even #endif /* * Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _delay(unsigned N) * Delay for at least (N/256) microseconds. * This routine dep...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun2/sun2/locore.s
601
660
NetBSD/src:sys/arch/sun2/sun2/locore.s:17
#else .align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a soft * copy of what they think is in the enable register and loop * making a change until it sticks. This is apparently to * be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun2/sun2/locore.s
641
700
NetBSD/src:sys/arch/sun2/sun2/locore.s:18
clrl %d0 1: orw %d1, _C_LABEL(enable_reg_soft) | do our OR movew _C_LABEL(enable_reg_soft), %d0 | get the result movsw %d0, SYSTEM_ENAB | install the result cmpw _C_LABEL(enable_reg_soft), %d0 bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts /* * Use common m68k 16-bit a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
ee808e2fd9dcf231953d9f4e2e324e871b12bc23
github
kernel
https://github.com/NetBSD/src/blob/ee808e2fd9dcf231953d9f4e2e324e871b12bc23/sys/arch/sun2/sun2/locore.s
681
704
NetBSD/src:sys/arch/sun2/sun2/locore.s:14
* 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/sun2/sun2/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun2/sun2/locore.s
521
580
NetBSD/src:sys/arch/sun2/sun2/locore.s:15
*/ GLOBAL(getsp) movl %sp,%d0 | get current SP addql #4,%d0 | compensate for return address rts ENTRY(getvbr) movc %vbr,%d0 #ifdef __ELF__ movl %d0, %a0 #endif /* __ELF__ */ rts ENTRY(setvbr) movl %sp@(4),%d0 movc %d0,%vbr rts /* loadustp, ptest_addr */ /* * Set processor priority level calls. Most a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun2/sun2/locore.s
561
620
NetBSD/src:sys/arch/sun2/sun2/locore.s:16
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 #ifdef DIAGNOSTIC | Message for 68881 save/restore panic Lsr0: .asciz "m68881 save/restore" .even #endif /* * Save and restore 68881 state. */ E...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun2/sun2/locore.s
601
660
NetBSD/src:sys/arch/sun2/sun2/locore.s:17
| %d0 = arg = (usecs << 8) movl %sp@(4),%d0 | %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 /* * 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 t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun2/sun2/locore.s
641
700
NetBSD/src:sys/arch/sun2/sun2/locore.s:18
clrl %d0 1: andw %d1, _C_LABEL(enable_reg_soft) | do our AND movew _C_LABEL(enable_reg_soft), %d0 | get the result movsw %d0, SYSTEM_ENAB | install the result cmpw _C_LABEL(enable_reg_soft), %d0 bne 1b | install it again if the soft value changed movc %a1,%dfc | restore dfc rts ENTRY(enable_reg_or) movc %d...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/sun2/sun2/locore.s
681
718
NetBSD/src:sys/arch/sun3/sun3/locore.s:3
#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! | This is for kvm_mkdb, and should be the address of the beginning | of the kernel text segment (not necessarily the same as kernbase)...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3/locore.s
81
140
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
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
* 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_RESTORER...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
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 %d0,%a0@ | change to ctx movsb %d1,%a1@ | set seg...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun3/sun3/locore.s
201
229
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
* 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_RESTORER...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
*/ ENTRY(DCIU) rts /* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */ /* PCIA */ /* loadustp, ptest_addr */ /* * 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, d...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun3/sun3/locore.s
201
250
NetBSD/src:sys/arch/sun3/sun3/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 _KERNBASE3,KERNBASE3 .set _MONSTART,SUN3_MONSTART .set _PROM_BASE,SUN3_PROM...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun3/sun3/locore.s
241
250
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
* 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_RESTORER...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
*/ 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 */ /* loadustp, ptest_addr */ /* * void set_segmap_allctx(vaddr_t va, int sme) */ ENTRY(set_segmap_allctx) linkw...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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,%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 n...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun3/sun3/locore.s
241
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
* 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_RESTORER...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* 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 */ /* loadustp, ptest_addr */ /* * void set_segmap_allctx(vaddr_t va, int sme) */...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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,%dfc | restore dfc moveml %sp@+,#0x000c unlk %fp rts | Define some addresses, mostly so DDB can print useful info. | Not usi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun3/sun3/locore.s
241
261
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* 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 */ /* loadustp, ptest_addr */ /* * _delay(unsigned N) * Delay for at least (N/256...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
* half-line. */ #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, d...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3/locore.s
241
293
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
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 syntax errors... .set _KERNBASE3,KERNBASE3 .set _MONSTART,SUN3_MONSTART .set _PROM...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun3/sun3/locore.s
281
293
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
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3/locore.s
121
180
NetBSD/src:sys/arch/sun3/sun3/locore.s:5
* 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 (should not happen) | T=1 S=0 trace trap from user mode | T=0 S=1 t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3/locore.s
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
movl %a6,%sp@(FR_SP) | from before trap | 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 %...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/sun3/sun3/locore.s
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
* 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_RESTORER...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun3/sun3/locore.s
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
* 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 */ /* * _delay(unsigned N) * Dela...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun3/sun3/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun3/sun3/locore.s
281
340
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
4048739f64f9f6795ecd90b007c27a0d9eb0187c
github
kernel
https://github.com/NetBSD/src/blob/4048739f64f9f6795ecd90b007c27a0d9eb0187c/sys/arch/sun3/sun3/locore.s
121
180
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
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/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. jra _C_LABEL(main) | main() (never returns) | That is all the assembly startup code we need on t...
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
161
220
NetBSD/src:sys/arch/sun3/sun3/locore.s:6
* - 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, kernel brkpt jra _ASM_LABEL(fault) | n...
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
201
260
NetBSD/src:sys/arch/sun3/sun3/locore.s:7
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 frame movl %a1@-,%a0@- | copy ...
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
241
300
NetBSD/src:sys/arch/sun3/sun3/locore.s:8
*/ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> /* TBIA, TBIS, TBIAS, TBIAU */ /* * Invalidate instruction cache */ ENTRY(ICIA) movl #IC_CLEAR,%d0 movc %d0,%cacr | invalidate i-cache ...
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
281
340