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/vax/vax/subr.S:11
movq %r0,-(%sp) /* push oldl/newl */ calls $2,_C_LABEL(lwp_startup) /* startup the lwp */ movl (%sp)+,%r0 /* grab func */ calls $1,(%r0) /* call it with arg */ ret /* * r1 = newlwp * r0 = oldlwp */ JSBENTRY(Swtchto) /* this pops the pc and psw from the stack and puts them in the pcb. */ svpctx # Now ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
401
460
NetBSD/src:sys/arch/vax/vax/subr.S:12
* it's TSO like x86 but I can't find a store-before-load * barrier, which is the only one TSO requires explicitly. */ /* XXX store-before-store barrier */ movl %r1,CI_CURLWP(%r8) /* update ci_curlwp */ /* XXX store-before-load barrier */ #endif mtpr PCB_PADDR(%r3),$PR_PCBB # set PA of new pcb mtpr $IPL_HIGH,$...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
441
500
NetBSD/src:sys/arch/vax/vax/subr.S:13
subl2 $0xfffc,12(%ap) brb 4b 3: movl $EFAULT,%r0 ret ENTRY(kcopy,0) mfpr $PR_ESP,%r3 movl (%r3),-(%sp) # save current pcb_onfault movab 1f,(%r3) # set pcb_onfault movl 4(%ap),%r1 movl 8(%ap),%r2 movc3 12(%ap),(%r1), (%r2) clrl %r0 1: mfpr $PR_ESP,%r3 movl (%sp)+,(%r3) # restore pcb_onfault ret /* * copy{...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
481
540
NetBSD/src:sys/arch/vax/vax/subr.S:14
movl 12(%ap),%r3 # len movl 16(%ap),%r2 # copied clrl %r0 mfpr $PR_ESP,%r1 movab 2f,(%r1) # set pcb_onfault tstl %r3 # any chars to copy? bneq 1f # yes, jump for more 0: tstl %r2 # save copied len? beql 2f # no subl3 4(%ap),%r5,(%r2) # save copied len 2: mfpr $PR_ESP,%r1 clrl (%r1) # clear pcb_onfault r...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
521
580
NetBSD/src:sys/arch/vax/vax/subr.S:15
2: UFETCHSTORE_EPILOGUE ;\ ret /* error already in %r0 */ /* LINTSTUB: int _ufetch_8(const uint8_t *uaddr, uint8_t *valp); */ ENTRY(_ufetch_8,0) UFETCHSTORE_PROLOGUE movb *4(%ap),*8(%ap) # *valp = *uaddr UFETCHSTORE_EPILOGUE UFETCHSTORE_RETURN /* LINTSTUB: int _ufetch_16(const uint16_t *uaddr, uint16_t ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
561
620
NetBSD/src:sys/arch/vax/vax/subr.S:16
UFETCHSTORE_PROLOGUE movl 8(%ap),*4(%ap) # *uaddr = val UFETCHSTORE_EPILOGUE UFETCHSTORE_RETURN /**************************************************************************/ .align 2 JSBENTRY(Slock) 1: bbssi $0,(%r1),1b rsb JSBENTRY(Slocktry) clrl %r0 bbssi $0,(%r1),1f incl %r0 1: rsb JSBENTRY(Sunlock) bb...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/subr.S
601
631
NetBSD/src:sys/arch/vax/vax/subr.S:7
caseb %r1,$1,$4 # What is the size 1: .word 1f-1b .word 2f-1b .word 3f-1b # This is unused .word 3f-1b 1: movb (%r2),%r1 # Test a byte brb 5f 2: movw (%r2),%r1 # Test a word brb 5f 3: movl (%r2),%r1 # Test a long brb 5f 4: incl %r3 # Got machine chk => addr bad 5: mtpr (%sp)+,$PR_IPL movl %r3,%r0 ret ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
0f470c04091ac4c3b5928b423a25307db3b7aacb
github
kernel
https://github.com/NetBSD/src/blob/0f470c04091ac4c3b5928b423a25307db3b7aacb/sys/arch/vax/vax/subr.S
241
300
NetBSD/src:sys/arch/vax/vax/subr.S:8
movl 12(%r1), %sp jmp *8(%r1) #endif #if defined(MULTIPROCESSOR) .align 2 .globl _C_LABEL(vax_mp_tramp) # used to kick off multiprocessor systems. _C_LABEL(vax_mp_tramp): ldpctx rei #endif .globl softint_cleanup,softint_exit,softint_process .type softint_cleanup@function .type softint_exit@function .type sof...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
281
340
NetBSD/src:sys/arch/vax/vax/subr.S:9
#endif mtpr PCB_PADDR(%r3),$PR_PCBB /* restore PA of interrupted pcb */ ldpctx /* implicitly updates curlwp */ rei softint_common: mfpr $PR_IPL,%r1 mtpr $IPL_HIGH,$PR_IPL /* we need to be at IPL_HIGH */ movpsl -(%sp) /* add cleanup hook */ pushab softint_cleanup svpctx /* We can use any register becau...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
321
380
NetBSD/src:sys/arch/vax/vax/subr.S:10
rei /* get off interrupt stack */ SCBENTRY(softclock) pushr $0x3 /* save r0 and r1 */ movl $SOFTINT_CLOCK,%r0 brb softint_common SCBENTRY(softbio) pushr $0x3 /* save r0 and r1 */ movl $SOFTINT_BIO,%r0 brb softint_common SCBENTRY(softnet) pushr $0x3 /* save r0 and r1 */ movl $SOFTINT_NET,%r0 brb sof...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
361
420
NetBSD/src:sys/arch/vax/vax/subr.S:11
/* this pops the pc and psw from the stack and puts them in the pcb. */ svpctx # Now on interrupt stack /* We can know use any register because ldpctx will overwrite them */ /* New LWP already in %r1 */ movl L_PCB(%r1),%r3 # Get pointer to new pcb. movl %r0,PCB_R0(%r3) # move r0 into new pcb (return value) #...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
401
460
NetBSD/src:sys/arch/vax/vax/subr.S:12
/* r0 already has previous lwp */ /* r1 already has this lwp */ /* r2/r3 and r4/r5 restored */ rei /* get off interrupt stack */ # # copy/fetch/store routines. # ENTRY(copyout, 0) movl 8(%ap),%r3 blss 3f # kernel space movl 4(%ap),%r1 brb 2f ENTRY(copyin, 0) movl 4(%ap),%r1 blss 3f # kernel space movl...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
441
500
NetBSD/src:sys/arch/vax/vax/subr.S:13
movl 8(%ap),%r2 movc3 12(%ap),(%r1), (%r2) clrl %r0 1: mfpr $PR_ESP,%r3 movl (%sp)+,(%r3) # restore pcb_onfault ret /* * copy{in,out}str() copies data from/to user space to/from kernel space. * Security checks: * 1) user space address must be < KERNBASE * 2) the VM system will do the checks while copying */ E...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
481
540
NetBSD/src:sys/arch/vax/vax/subr.S:14
2: mfpr $PR_ESP,%r1 clrl (%r1) # clear pcb_onfault ret 1: movb (%r5)+,(%r4)+ # copy one char beql 0b # jmp if last char sobgtr %r3,1b # copy one more movl $ENAMETOOLONG,%r0 # inform about too long string brb 0b # out of chars /**************************************************************************/ .al...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
521
580
NetBSD/src:sys/arch/vax/vax/subr.S:15
ENTRY(_ufetch_16,0) UFETCHSTORE_PROLOGUE movw *4(%ap),*8(%ap) # *valp = *uaddr UFETCHSTORE_EPILOGUE UFETCHSTORE_RETURN /* LINTSTUB: int _ufetch_32(const uint32_t *uaddr, uint32_t *valp); */ ENTRY(_ufetch_32,0) UFETCHSTORE_PROLOGUE movl *4(%ap),*8(%ap) # *valp = *uaddr UFETCHSTORE_EPILOGUE UFETCHSTORE_RETURN ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
561
620
NetBSD/src:sys/arch/vax/vax/subr.S:16
rsb JSBENTRY(Slocktry) clrl %r0 bbssi $0,(%r1),1f incl %r0 1: rsb JSBENTRY(Sunlock) bbcci $0,(%r1),1f 1: rsb # # data department # .data .globl _C_LABEL(memtest) _C_LABEL(memtest): # memory test in progress .long 0
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/subr.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/subr.S
601
620
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:2
#define S_R3 12(%fp) #define S_R4 16(%fp) #define S_R5 20(%fp) #define S_R6 24(%fp) #define S_R7 28(%fp) #define S_R8 32(%fp) #define S_R9 36(%fp) #define S_R10 40(%fp) #define S_R11 44(%fp) #define S_AP 48(%fp) #define S_FP 52(%fp) #define S_SP 56(%fp) #define S_PC 60(%fp) #define S_PSL 64(%fp) # The condition codes....
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
41
100
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:3
# #ifdef EMULATE_INKERNEL touser: movl (%sp),-52(%sp) # save rsb address on top of new stack movl 4(%sp),%r0 # restore saved reg addl2 $12,%sp # pop junk from stack pushr $0x7fff # save all regs movl %sp,%fp # new frame pointer tstl -(%sp) # remember old rsb address incl S_PC # skip matching insn rsb #else ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
81
140
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:4
movl S_PC,%r3 # argument address extzv $4,$4,(%r3),%r2 # get mode caseb %r2,$0,$0xf 0: .word getval_literal-0b # 0-3 literal .word getval_literal-0b .word getval_literal-0b .word getval_literal-0b .word 2f-0b # 4 indexed .word getval_reg-0b # 5 register .word getval_regdefer-0b # 6 register deferred .wor...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
121
180
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:5
* Register mode. Grab the register number, yank the value out. */ getval_reg: extzv $0,$4,(%r3),%r2 # Get reg number incl %r3 ashl $2,%r2,%r2 addl3 %fp,%r2,%r5 bsbw emul_extract brw 4f /* * 0x06 * Register deferred mode. Grab the register number, yank the value out, * use that as the address to ge...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
161
220
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:6
ashl $2,%r2,%r2 addl2 %fp,%r2 movl (%r2),%r5 bsbw emul_extract addl2 %r6,(%r2) movl S_PC,%r3 /* if PC did change, S_PC was changed too */ brw 4f /* * 0xA * Byte displacement mode. */ getval_bytedis: extzv $0, $4, (%r3), %r2 # get register incl %r3 ashl $2,%r2,%r2 addl2 %fp,%r2 movl (%r2),%r5 m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
201
260
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:7
popr $(R2+R3+R4+R5+R6) rsb /* * emul_extract: used by the getval functions. This extracts exactly %r6 bytes * from the address in %r5 and places them in %r0 and %r1 (if necessary). * 8 is the current maximum length. */ emul_extract: cmpl $0x8, %r6 bgeq 1f .word 0xffff # reserved operand 1: caseb %r6, $0x1,...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
241
300
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:8
clrq %r0 pushr $(R2+R3+R6) # use %r2+%r3 as scratch reg movl S_PC,%r3 # argument address extzv $4,$4,(%r3),%r2 # get mode caseb %r2,$0,$0x3 0: .word 1f-0b # 0-3 literal .word 1f-0b .word 1f-0b .word 1f-0b movl $0x8, %r6 bsbw getval brw 4f 1: insv (%r3),$0,$3,%r0 # insert fraction extzv $3,$3,(%r3),%r2 # ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
281
340
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:9
getval_byte: clrl %r0 pushr $(R6+R1) # use %r2+%r3 as scratch reg movl $0x1, %r6 bsbw getval popr $(R6+R1) rsb # # getaddr_byte get 4 bytes and stores them in %r0. Increases PC. # getaddr_byte: clrl %r0 pushr $(R2+R3) # use %r2+%r3 as scratch reg movl S_PC,%r3 # argument address extzv $4,$4,(%r3),%r2 # get ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
321
380
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:10
#endif 1: extzv $0,$4,(%r3),%r2 # Get reg number incl %r3 movl (%fp)[%r2],%r0 # Register contents addl2 (%r3),%r0 # add displacement cmpl %r2,$15 # pc? bneq 0f # no, skip addl2 $5,%r0 # compensate for displacement size 0: addl2 $4,%r3 # increase pc brw 4f 5: extzv $0,$4,(%r3),%r2 # Get reg number incl %r...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
361
420
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:11
bneq 0f # no, skip addl2 $3,%r0 # compensate for displacement size 0: addl2 $2,%r3 # increase pc brw 4f 6: extzv $0,$4,(%r3),%r2 # Get reg number incl %r3 moval (%fp)[%r2],%r0 4: movl %r3,S_PC popr $(R2+R3) rsb # # Polynomial calculation, d-float # Uses d-float instructions, so hopefully d-float is avail...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
401
460
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:12
movl %r3,S_R3 clrq S_R4 brw goback #ifdef EMULATE_INKERNEL # When we end up somewhere we don't want. die: pushl %r1 pushl %r0 calls $2,_printf movl %fp,sp brw goback # anything may happen #endif # these emodd-related #define TMPSIZE 0x20 /* temp bytes -- be careful with this! */ #define PRECIS 0x7 #define TMP...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
441
500
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:13
movl %sp, %r3 /* %r3 = addr of exp space (1) */ clrl -(%sp) movl %sp, %r5 /* %r5 = addr of exp space (2) */ subl2 $0x10, %sp movl %sp, %r6 /* %r6 = addr of allocated target space */ /* * Now we package both numbers up and call fltext_De, which * will remove the exponent and sign; this will make them * ea...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
481
540
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:14
bsbw getval_dfloat # get operand into %r0 and %r1 /* Check for sign = 0 and exp = 0; if it is, zeroexit. */ bicl3 $0x7f, %r0, %r4 cmpl %r4, $0x0 bneq 1f bsbw getval_byte # get multiplier extension operand bsbw getval_dfloat # get target operand jmp zeroexit 1: /* Check for sign = 1 and exp = 0; if it is, do a...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
521
580
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:15
calls $0x1, bitcnt movl %r0, %r2 /* %r2 = bitcount of TMPFRAC2 */ /* * Now we get ready to multiply. This multiplies a byte at a time, * converting to double with CVTLD and adding partial results to * TMPFRACTGT. There's probably a faster way to do this. */ clrd TMPFRACTGT pushr $0x7fc subl2 $0x8, %sp...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
561
620
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:16
/* This may be bigger than a longword. Break it up. */ 5: cmpl %r9, $0x1e bleq 6f subl2 $0x1e, %r9 ashl $0x1e, $0x1, %r8 cvtld %r8, (%r1) muld2 (%r1), (%r2) jmp 5b 6: ashl %r9, $0x1, %r8 cvtld %r8, (%r1) muld2 (%r1), (%r2) addd2 (%r2), TMPFRACTGT 9: cmpl %r5, $0x0 beql 2f decl %r5 jmp 1b 2: cmpl %r6, $...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
601
660
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:17
1: bicl3 $0xffff7fff, %r8, %r5 bneq 2f incl %r3 ashl $0x1, %r8, %r5 movl %r5, %r8 jmp 1b 2: /* * Now we do post-normalization (by subtracting %r3) and * put the exponent (in %r9) into TMPFRACTGT. */ subl2 %r3, %r9 insv %r9, $0x7, $0x8, TMPFRACTGT bisl2 %r6, TMPFRACTGT # set the sign /* * Now we ne...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
641
700
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:18
/* * In the case where we have more than 55 bits in the integer, * there aren't any bits left for the fraction. Therefore we're * done here; TMPFRAC1 is equal to TMPFRACTGT and TMPFRAC2 is 0. */ movq $0d0.0, TMPFRAC2 jmp 9f /* we're done, move on */ 1: /* * We do the mod by using ASHQ to shift and trunc...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
681
740
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:19
# we have the integer in TMPFRAC1, now get the fraction in TMPFRAC2 subd3 TMPFRAC1, TMPFRACTGT, TMPFRAC2 jmp 9f 8: /* * We are less than 1.0; TMPFRAC1 should be 0, and TMPFRAC2 should * be equal to TMPFRACTGT. */ movd $0d0.0, TMPFRAC1 movd TMPFRACTGT, TMPFRAC2 9: /* * We're done. We can use CVTDL here, s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
721
780
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:20
/* Z == 1, everything else has been cleared already */ bisl2 $PSL_Z, S_PSL bsbw getaddr_byte movl $0x0, (%r0) bsbw getaddr_byte movd $0d0, (%r0) brw goback /* * bitcnt: counts significant bits backwards in a quadword * returns number of bits, unless there aren't any; * in that case it will return $0xfffffff...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
761
820
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:21
*/ subl3 %r3, $0x8, %r0 ashl $0x5, %r1, %r2 addl2 %r2, %r0 ret 3: /* this quadword is 0 */ movl $0xffffffff, %r0 ret /* * The fltext_X routines separate fraction and exponent* bits. * They return (via %r0) the amount of bits in the fraction. * * *: exponents are left in excess-128 form * D_ floatin...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
801
852
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:22
movb 6(%r0), (%r1)+ /* * if there are extension bits (EMOD EDIV etc.) they are * low-order */ movb 0x10(%ap), (%r1) movl 0x4(%ap), %r0 # %r0 - addr of source movl 0xc(%ap), %r2 # %r2 - addr of exponent destination extzv $0x7, $0x8, (%r0), (%r2) # get exponent out ret
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/vax/vax/unimpl_emul.S
841
852
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:17
1: bicl3 $0xffff7fff, %r8, %r5 bneq 2f incl %r3 ashl $0x1, %r8, %r5 movl %r5, %r8 jmp 1b 2: /* * Now we do post-normalization (by subtracting %r3) and * put the exponent (in %r9) into TMPFRACTGT. */ subl2 %r3, %r9 insv %r9, $0x7, $0x8, TMPFRACTGT bisl2 %r6, TMPFRACTGT # set the sign /* * Now we ne...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/unimpl_emul.S
641
700
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:18
/* * In the case where we have more than 55 bits in the integer, * there aren't any bits left for the fraction. Therefore we're * done here; TMPFRAC1 is equal to TMPFRACTGT and TMPFRAC2 is 0. */ movq $0f0.0, TMPFRAC2 jmp 9f /* we're done, move on */ 1: /* * We do the mod by using ASHQ to shift and trunc...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/unimpl_emul.S
681
740
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:19
# we have the integer in TMPFRAC1, now get the fraction in TMPFRAC2 subd3 TMPFRAC1, TMPFRACTGT, TMPFRAC2 jmp 9f 8: /* * We are less than 1.0; TMPFRAC1 should be 0, and TMPFRAC2 should * be equal to TMPFRACTGT. */ movd $0f0.0, TMPFRAC1 movd TMPFRACTGT, TMPFRAC2 9: /* * We're done. We can use CVTDL here, s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/unimpl_emul.S
721
780
NetBSD/src:sys/arch/vax/vax/unimpl_emul.S:20
/* Z == 1, everything else has been cleared already */ bisl2 $PSL_Z, S_PSL bsbw getaddr_byte movl $0x0, (%r0) bsbw getaddr_byte movd $0f0, (%r0) brw goback /* * bitcnt: counts significant bits backwards in a quadword * returns number of bits, unless there aren't any; * in that case it will return $0xfffffff...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/vax/vax/unimpl_emul.S
BSD-2-Clause
3a3e6e6861107fa30395b99abb65697f94ef1bf8
github
kernel
https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/sys/arch/vax/vax/unimpl_emul.S
761
820
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:3
addl %a5,ar #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) #define ASRELOC(var, ar) _RELOC(_ASM_LABEL(var), ar) BSS(esym,4) .globl _C_LABEL(edata) .globl _C_LABEL(etext),_C_LABEL(end) /* * This is for kvm_mkdb, and should be the address of the beginning * of the kernel text segment (not necessarily the same ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/virt68k/virt68k/locore.s
81
140
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
ASRELOC(tmpstk, %a0) movl %a0,%sp | give ourselves a temporary stack RELOC(edata,%a0) | clear out BSS movl #_C_LABEL(end) - 4, %d0 | (must be <= 256 kB) subl #_C_LABEL(edata), %d0 lsrl #2,%d0 1: clrl %a0@+ dbra %d0,1b /* * Qemu does not pass us the symbols, so leave esym alone. * The bootinfo immediatel...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/virt68k/virt68k/locore.s
161
219
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
* I don't see an obvious ordering-only instruction in the m68k * instruction set, but qemu implements CAS with * store-before-load ordering, so this should work for virtio. */ moveq #0,%d0 casl %d0,%d0,%sp@ rts END(paravirt_membar_sync) /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_6804...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/virt68k/virt68k/locore.s
201
219
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
99d031f1ffd1c119aa60d578cf4a35c43ca48e6f
github
kernel
https://github.com/NetBSD/src/blob/99d031f1ffd1c119aa60d578cf4a35c43ca48e6f/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
* interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to mat...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
99d031f1ffd1c119aa60d578cf4a35c43ca48e6f
github
kernel
https://github.com/NetBSD/src/blob/99d031f1ffd1c119aa60d578cf4a35c43ca48e6f/sys/arch/virt68k/virt68k/locore.s
201
242
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
* interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * Primitives */ /* * Use common m68k process/lwp switch and context save su...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/virt68k/virt68k/locore.s
201
251
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
/* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/virt68k/virt68k/locore.s
241
251
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
* interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * Primitives */ /* * Use common m68k process/lwp switch and context save su...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/virt68k/virt68k/locore.s
201
252
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
END(paravirt_membar_sync) /* * Misc. global variables. */ .data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/virt68k/virt68k/locore.s
241
252
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
b869970055036e71dacb86bebad49c6f626c6fb9
github
kernel
https://github.com/NetBSD/src/blob/b869970055036e71dacb86bebad49c6f626c6fb9/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
moveq #T_TRACE,%d0 | Check PSW and see what happen. | T=0 S=0 (should not happen) | T=1 S=0 trace trap from user mode | T=0 S=1 trace trap on a trap instruction | T=1 S=1 trace trap from system mode (kernel breakpoint) movw %sp@(FR_HW),%d1 | get PSW notw %d1 | XXX no support for T0 on 680[234]0 and...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
b869970055036e71dacb86bebad49c6f626c6fb9
github
kernel
https://github.com/NetBSD/src/blob/b869970055036e71dacb86bebad49c6f626c6fb9/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
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 movql #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1 jbgt Lbrkpt1 Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call tra...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
b869970055036e71dacb86bebad49c6f626c6fb9
github
kernel
https://github.com/NetBSD/src/blob/b869970055036e71dacb86bebad49c6f626c6fb9/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
| data below it modified (by kgdb push call), | so push the hardware frame at the current sp | before restoring registers and returning. movl %sp@(FR_SP),%a0 | modified sp lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) |...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
b869970055036e71dacb86bebad49c6f626c6fb9
github
kernel
https://github.com/NetBSD/src/blob/b869970055036e71dacb86bebad49c6f626c6fb9/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the same as membar_sync, but guaranteed never to be * conditionalized or hotpatched away even on uniprocessor * builds and boots -- because under virtualization, we still * hav...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
b869970055036e71dacb86bebad49c6f626c6fb9
github
kernel
https://github.com/NetBSD/src/blob/b869970055036e71dacb86bebad49c6f626c6fb9/sys/arch/virt68k/virt68k/locore.s
321
352
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
*/ /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ ENTRY_NOPROFILE(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Check PSW and see what happen. | T=0 S=0 (should not happen) | T=1 S=0 trace trap from user mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
| 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 were are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbr...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
| Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it modified (by kgdb push call), | so push the h...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
/* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * This is the same ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
6de54b5f0e773667a6a453f9ed496e1573fb4b0c
github
kernel
https://github.com/NetBSD/src/blob/6de54b5f0e773667a6a453f9ed496e1573fb4b0c/sys/arch/virt68k/virt68k/locore.s
321
361
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
| Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it modified (by kgdb push call), | so push the h...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
/* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/virt68k/virt68k/locore.s
321
367
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9d6419c4da166ebe3d3e638bde0d125bc8f7499c
github
kernel
https://github.com/NetBSD/src/blob/9d6419c4da166ebe3d3e638bde0d125bc8f7499c/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
/* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ ENTRY_NOPROFILE(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Check PSW and see what happen. | T=0 S=0 (should not happen) | T=1 S=0 trace trap from user mode ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9d6419c4da166ebe3d3e638bde0d125bc8f7499c
github
kernel
https://github.com/NetBSD/src/blob/9d6419c4da166ebe3d3e638bde0d125bc8f7499c/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If were are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9d6419c4da166ebe3d3e638bde0d125bc8f7499c
github
kernel
https://github.com/NetBSD/src/blob/9d6419c4da166ebe3d3e638bde0d125bc8f7499c/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it modified (by kgdb push call), | so push the hardware frame at the ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9d6419c4da166ebe3d3e638bde0d125bc8f7499c
github
kernel
https://github.com/NetBSD/src/blob/9d6419c4da166ebe3d3e638bde0d125bc8f7499c/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
* Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the h...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9d6419c4da166ebe3d3e638bde0d125bc8f7499c
github
kernel
https://github.com/NetBSD/src/blob/9d6419c4da166ebe3d3e638bde0d125bc8f7499c/sys/arch/virt68k/virt68k/locore.s
321
366
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
* Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the h...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
9221125ecc4095caa14fffa7bba29a43c94152a4
github
kernel
https://github.com/NetBSD/src/blob/9221125ecc4095caa14fffa7bba29a43c94152a4/sys/arch/virt68k/virt68k/locore.s
321
366
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
/* * Other exceptions only cause four and six word stack frame and require * no post-trap stack adjustment. */ /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ ENTRY_NOPROFILE(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRA...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
jra _ASM_LABEL(fault) | no, user-mode fault Lkbrkpt: | Kernel-mode breakpoint or trace trap. (d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If were are not on tmpstk sw...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
jne Lbrkpt3 | yes, done #endif #ifdef DDB | Let DDB handle it movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kdb_trap) | handle the trap addql #8,%sp | pop args #endif /* Sun 3 drops into PROM here. */ Lbrkpt3: | The stack pointer may have been modified, or | data below it m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #define FPCOPROC /* XXX: Temp. Reqd. */ #include <m68k/m68k/switch_subr.s> ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * St...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a8a4cf49bbdcc74016a411ab0f760cbb376f0def
github
kernel
https://github.com/NetBSD/src/blob/a8a4cf49bbdcc74016a411ab0f760cbb376f0def/sys/arch/virt68k/virt68k/locore.s
321
370
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:4
ASRELOC(tmpstk, %a0) movl %a0,%sp | give ourselves a temporary stack RELOC(edata,%a0) | clear out BSS movl #_C_LABEL(end) - 4, %d0 | (must be <= 256 kB) subl #_C_LABEL(edata), %d0 lsrl #2,%d0 1: clrl %a0@+ dbra %d0,1b /* * Qemu does not pass us the symbols, so leave esym alone. * The bootinfo immediatel...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
121
180
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
* later on. */ clrw %sp@- | vector offset/frame type clrl %sp@- | PC - filled in by "execve" movw #PSL_USER,%sp@- | in user mode clrl %sp@- | stack adjust count and padding lea %sp@(-64),%sp | construct space for D0-D7/A0-A7 lea _C_LABEL(lwp0),%a0 | save pointer to frame movl %sp,%a0@(L_MD_REGS) | in ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
* - 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(). */ ENTRY_NOPROFILE(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 movw %sp@(FR_HW),%d1 | get ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
| If we have both DDB and KGDB, let KGDB see it first, | because KGDB will just return 0 if not connected. | Save args in d2, a2 movl %d0,%d2 | trap type movl %sp,%a2 | frame ptr #ifdef KGDB | Let KGDB handle it (if connected) movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(k...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
* For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
* that is potentially on another physical CPU even if we * observe only one virtual CPU as the guest. * * I don't see an obvious ordering-only instruction in the m68k * instruction set, but qemu implements CAS with * store-before-load ordering, so this should work for virtio. */ clrl %d0 casl %d0,%d0,%sp@...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
84717b5c0311acf99ccc154c3714194745354b43
github
kernel
https://github.com/NetBSD/src/blob/84717b5c0311acf99ccc154c3714194745354b43/sys/arch/virt68k/virt68k/locore.s
361
382
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
* For auto-vectored interrupts, the CPU provides the * vector 0x18+level. * * intrhand_autovec is the entry point for auto-vectored * interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync moveq #0,%d0 | indicate no fault jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_memba...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/virt68k/virt68k/locore.s
361
411
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:5
movl %d0, %d7 /* NOTE: %d7 is now off-limits!! */ /* * Enable the MMU. * Since the kernel is mapped logical == physical, there is no prep * work to do. */ #include <m68k/m68k/mmu_enable.s> /* * Should be running mapped from this point on */ Lmmuenabled: lea _ASM_LABEL(tmpstk),%sp | re-load the temporary stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
161
220
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:6
/* final setup for C code */ movl %d7,%sp@- | push nextpa saved above jbsr _C_LABEL(machine_init) | additional pre-main initialization addql #4,%sp /* * Create a fake exception frame so that cpu_lwp_fork() can copy it. * main() nevers returns; we exit to user mode from a forked process * later on. */ clrw %sp@...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
201
260
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
ENTRY_NOPROFILE(fpunsupp) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unsupp | No, skip FPSP #ifdef FPSP jmp _ASM_LABEL(fpsp_unsupp) | yes, go handle it #else clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation tra...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
bset #3,%a0@(0,%d0:w) | set exc_pend bit of BIU Lfptnull: fmovem %fpsr,%sp@- | push fpsr as code argument frestore %a0@ | restore state movl #T_FPERR,%sp@- | push type arg jra _ASM_LABEL(faultstkadj) | call trap and deal with stack cleanup /* * Other exceptions only cause four and six word stack frame and requi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
*/ ENTRY_NOPROFILE(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 movw %sp@(FR_HW),%d1 | get PSW andw #PSL_S,%d1 | from system mode? jne Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fault Lkbrkpt: | Kernel-mode breakpoint or trace trap. (d0=trap_...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
movl %sp,%a2 | frame ptr #ifdef KGDB | Let KGDB handle it (if connected) movl %a2,%sp@- | push frame ptr movl %d2,%sp@- | push trap type jbsr _C_LABEL(kgdb_trap) | handle the trap addql #8,%sp | pop args cmpl #0,%d0 | did kgdb handle it? jne Lbrkpt3 | yes, done #endif #ifdef DDB | Let DDB handle it m...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
* interrupts. */ ENTRY_NOPROFILE(intrhand_autovec) addql #1,_C_LABEL(intr_depth) INTERRUPT_SAVEREG jbsr _C_LABEL(intr_dispatch) | call dispatcher INTERRUPT_RESTOREREG subql #1,_C_LABEL(intr_depth) jra _ASM_LABEL(rei) | all done /* * Primitives */ /* * Use common m68k process/lwp switch and context save su...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
jra Lsldone Lslerr: moveq #-1,%d0 Lsldone: movl _C_LABEL(curpcb),%a1 | current pcb clrl %a1@(PCB_ONFAULT) | clear fault address rts #endif ENTRY(ecacheon) rts ENTRY(ecacheoff) rts ENTRY(paravirt_membar_sync) /* * Store-before-load ordering with respect to matching logic * on the hypervisor side. * * ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
441
490
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:13
.data GLOBAL(mmutype) .long MMU_68040 | default to MMU_68040 GLOBAL(cputype) .long CPU_68040 | default to CPU_68040 GLOBAL(fputype) .long FPU_68040 | default to FPU_68040
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/virt68k/virt68k/locore.s
481
490
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:7
ENTRY_NOPROFILE(fpunsupp) #if defined(M68040) cmpl #FPU_68040,_C_LABEL(fputype) | 68040 FPU? jne Lfp_unsupp | No, skip FPSP #ifdef FPSP jmp _ASM_LABEL(fpsp_unsupp) | yes, go handle it #else clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- | save registers moveq #T_FPEMULD,%d0 | denote as FP emulation tra...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
241
300
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:8
bset #3,%a0@(0,%d0:w) | set exc_pend bit of BIU Lfptnull: fmovem %fpsr,%sp@- | push fpsr as code argument frestore %a0@ | restore state movl #T_FPERR,%sp@- | push type arg jra _ASM_LABEL(faultstkadj) | call trap and deal with stack cleanup /* * Other exceptions only cause four and six word stack frame and requi...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
281
340
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:9
| T=0 S=1 trace trap on a trap instruction | T=1 S=1 trace trap from system mode (kernel breakpoint) movw %sp@(FR_HW),%d1 | get PSW notw %d1 | XXX no support for T0 on 680[234]0 andw #PSL_TS,%d1 | from system mode (T=1, S=1)? jeq Lkbrkpt | yes, kernel breakpoint jra _ASM_LABEL(fault) | no, user-mode fa...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
321
380
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:10
movql #FR_SIZE,%d1 Lbrkpt1: movl %a0@+,%a1@+ subql #4,%d1 jbgt Lbrkpt1 Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to do it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. | If we have both DDB and KGDB, let ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
361
420
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:11
lea %sp@(FR_SIZE),%a1 | end of our frame movl %a1@-,%a0@- | copy 2 longs with movl %a1@-,%a0@- | ... predecrement movl %a0,%sp@(FR_SP) | sp = h/w frame moveml %sp@+,#0x7FFF | restore all but sp movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. * * For auto-vectored interrupts, the CPU...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
401
460
NetBSD/src:sys/arch/virt68k/virt68k/locore.s:12
movl #Lslerr,%a1@(PCB_ONFAULT) | where to return to on a fault movl %sp@(8),%a1 | address of line movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | sync movl %a1@+,%d0 | get lword movsl %d0,%a0@+ | put lword nop | syn...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/virt68k/virt68k/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/virt68k/virt68k/locore.s
441
500