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/sparc64/sparc64/hvcall.S:4
#define LDC_COPY 0xec #define LDC_MAPIN 0xed #define LDC_UNMAP 0xee #define LDC_REVOKE 0xef #define RNG_GET_DIAG_CONTROL 0x130 #define RNG_CTL_READ 0x131 #define RNG_CTL_WRITE 0x132 #define RNG_DATA_READ_DIAG 0x133 #define RNG_DATA_READ 0x134 #define API_SET_VERSION 0x00 #define API_PUTCHAR 0x01 #define API...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
121
180
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:5
ENTRY(hv_mach_desc) mov %o1, %o2 ldx [%o2], %o1 mov MACH_DESC, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_cpu_yield) mov CPU_YIELD, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_cpu_qconf) mov CPU_QCONF, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_cpu_mondo_send) mov CPU_MONDO_SEND, %o5 ta ST_FAST_TRAP r...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
161
220
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:6
mov MMU_TSB_CTXNON0, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_mmu_demap_page) mov %o2, %o4 mov %o1, %o3 mov %o0, %o2 clr %o1 clr %o0 mov MMU_DEMAP_PAGE, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_mmu_demap_ctx) mov %o1, %o3 mov %o0, %o2 clr %o1 clr %o0 mov MMU_DEMAP_CTX, %o5 ta ST_FAST_TRAP retl nop E...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
201
260
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:7
mov MMU_MAP_PERM_ADDR, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_mmu_unmap_perm_addr) mov %o1, %o2 clr %o1 mov MMU_UNMAP_PERM_ADDR, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_mmu_map_addr) ta ST_MMU_MAP_ADDR retl nop ENTRY(hv_mmu_unmap_addr) ta ST_MMU_UNMAP_ADDR retl nop ENTRY(hv_mem_scrub) mov MEM_SCRUB...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
241
300
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:8
stx %o1, [%o2] ENTRY(hv_tod_set) mov TOD_SET, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_cons_getchar) mov %o0, %o2 mov CONS_GETCHAR, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_cons_putchar) mov CONS_PUTCHAR, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_soft_state_set) mov SOFT_STATE_SET, %o5 ta ST_FAST...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
281
340
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:9
ENTRY(hv_intr_setenabled) mov INTR_SETENABLED, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_intr_getstate) mov %o1, %o2 mov INTR_GETSTATE, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_intr_setstate) mov INTR_SETSTATE, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_intr_gettarget) mov %o1, %o2 mov INTR_GETTARGE...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
321
380
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:10
ta ST_FAST_TRAP retl nop ENTRY(hv_vintr_getenabled) mov VINTR_GETENABLED, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_vintr_setenabled) mov VINTR_SETENABLED, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_vintr_getstate) mov VINTR_GETSTATE, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_vintr_setsta...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
361
420
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:11
ENTRY(hv_pci_iommu_map) mov %o5, %g5 mov PCI_IOMMU_MAP, %o5 ta ST_FAST_TRAP retl stx %o1, [%g5] ENTRY(hv_pci_iommu_demap) mov PCI_IOMMU_DEMAP, %o5 ta ST_FAST_TRAP retl stx %o1, [%o3] ENTRY(hv_pci_iommu_getmap) mov %o2, %o4 mov PCI_IOMMU_GETMAP, %o5 ta ST_FAST_TRAP stx %o1, [%o4] retl stx %o2, [%o3] ...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
401
460
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:12
stx %o1, [%g5] ENTRY(hv_pci_msiq_conf) mov PCI_MSIQ_CONF, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_pci_msiq_info) mov %o2, %o4 mov PCI_MSIQ_INFO, %o5 ta ST_FAST_TRAP stx %o1, [%o4] retl stx %o2, [%o3] ENTRY(hv_pci_msiq_getvalid) mov PCI_MSIQ_GETVALID, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_p...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
441
500
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:13
ENTRY(hv_pci_msiq_gethead) mov PCI_MSIQ_GETHEAD, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_pci_msiq_sethead) mov PCI_MSIQ_SETHEAD, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_pci_msiq_gettail) mov PCI_MSIQ_GETTAIL, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_pci_msi_getvalid) mov PCI_MSI_GETVAL...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
481
540
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:14
nop ENTRY(hv_pci_msi_getstate) mov PCI_MSI_GETSTATE, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_pci_msi_setstate) mov PCI_MSI_SETSTATE, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_pci_msg_getmsiq) mov PCI_MSG_GETMSIQ, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_pci_msg_setmsiq) mov PCI_MSG_SETM...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
521
580
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:15
ta ST_FAST_TRAP retl nop ENTRY(hv_ldc_tx_qinfo) mov %o2, %o4 mov %o1, %o3 mov LDC_TX_QINFO, %o5 ta ST_FAST_TRAP stx %o1, [%o3] retl stx %o2, [%o4] ENTRY(hv_ldc_tx_get_state) mov %o3, %g5 mov %o2, %g4 mov %o1, %o4 mov LDC_TX_GET_STATE, %o5 ta ST_FAST_TRAP stx %o1, [%o4] stx %o2, [%g4] retl stx %o3...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
561
620
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:16
ta ST_FAST_TRAP stx %o1, [%o3] retl stx %o2, [%o4] ENTRY(hv_ldc_rx_get_state) mov %o3, %g5 mov %o2, %g4 mov %o1, %o4 mov LDC_RX_GET_STATE, %o5 ta ST_FAST_TRAP stx %o1, [%o4] stx %o2, [%g4] retl stx %o3, [%g5] ENTRY(hv_ldc_rx_set_qhead) mov LDC_RX_SET_QHEAD, %o5 ta ST_FAST_TRAP retl nop ENTRY(hv_ld...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
601
660
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:17
ta ST_FAST_TRAP retl stx %o1, [%g5] ENTRY(hv_ldc_mapin) mov %o2, %o4 mov LDC_MAPIN, %o5 ta ST_FAST_TRAP stx %o1, [%o4] retl stx %o2, [%o3] ENTRY(hv_ldc_unmap) mov %o1, %o2 mov LDC_UNMAP, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_rng_get_diag_control) mov RNG_GET_DIAG_CONTROL, %o5 ta ST_FAST_...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
641
692
NetBSD/src:sys/arch/sparc64/sparc64/hvcall.S:18
ENTRY(hv_rng_data_read_diag) mov RNG_DATA_READ_DIAG, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2] ENTRY(hv_rng_data_read) mov %o1, %o2 mov RNG_DATA_READ, %o5 ta ST_FAST_TRAP retl stx %o1, [%o2]
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/hvcall.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/hvcall.S
681
692
NetBSD/src:sys/arch/sparc64/sparc64/lock_stubs.s:2
#define CURLWP (CPUINFO_VA+CI_CURLWP) #if defined(MULTIPROCESSOR) #define MB_ACQ membar #LoadLoad | #LoadStore #define MB_REL membar #LoadStore | #StoreStore #else #define MB_ACQ /* nothing */ #define MB_REL /* nothing */ #endif #if !defined(LOCKDEBUG) /* * void mutex_enter(kmutex_t *); */ .align 32 ENTRY(mutex_en...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/lock_stubs.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/lock_stubs.s
41
89
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:3
#include <machine/hypervisor.h> #endif #include "ksyms.h" .register %g2,#scratch .register %g3,#scratch #define BLOCK_SIZE SPARC64_BLOCK_SIZE #define BLOCK_ALIGN SPARC64_BLOCK_ALIGN #if defined(MULTIPROCESSOR) /* * IPI handler to do nothing, but causes rescheduling.. * void sparc64_ipi_nop(void *); */ ENTRY(spa...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
81
140
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:4
nop /* * Increment IPI event counter, defined in machine/{cpu,intr}.h. */ #define IPIEVC_INC(n,r1,r2) \ sethi %hi(CPUINFO_VA+CI_IPIEVC+EVC_SIZE*n), r2; \ ldx [r2 + %lo(CPUINFO_VA+CI_IPIEVC+EVC_SIZE*n)], r1; \ inc r1; \ stx r1, [r2 + %lo(CPUINFO_VA+CI_IPIEVC+EVC_SIZE*n)] /* * void sparc64_ipi_flush_...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
121
180
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:5
stxa %g6, [%g5] ASI_DMMU ! Restore secondary context membar #Sync IPIEVC_INC(IPI_EVCNT_TLB_PTE,%g2,%g3) ba,a ret_from_intr_vector nop ENTRY(sparc64_ipi_flush_pte_usiii) andn %g2, 0xfff, %g2 ! drop unused va bits mov CTX_PRIMARY, %g5 ldxa [%g5] ASI_DMMU, %g6 ! Save primary context sethi %hi(KERNBASE), %g7...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
161
220
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:6
mov MAP_DTLB|MAP_ITLB, %o2 ! flags ta ST_MMU_UNMAP_ADDR mov %g1, %o0 ! restore input mov %g2, %o1 mov %g4, %o2 retry #endif /* * Secondary CPU bootstrap code. */ .text .align 32 1: rd %pc, %l0 LDULNG [%l0 + (3f-1b)], %l1 ! Load itlb slot count LDULNG [%l0 + (7f-1b)], %g2 ! Load cpu_args address. add %l0,...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
201
260
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:7
sir ! crash if mapping fails .Litlb_4u: #endif ! sun4u wr %g0, ASI_DMMU, %asi stxa %l4, [%g0 + TLB_TAG_ACCESS] %asi stxa %l5, [%g0] ASI_DMMU_DATA_IN wr %g0, ASI_IMMU, %asi stxa %l4, [%g0 + TLB_TAG_ACCESS] %asi stxa %l5, [%g0] ASI_IMMU_DATA_IN .Litlb_next: membar #Sync flush %l4 add %l2, PTE_SIZE, %l2 add...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
241
300
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:8
be,pt %icc, .Ldtlb_next nop sir ! crash if mapping fails .Ldtlb_4u: #endif ! sun4u wr %g0, ASI_DMMU, %asi stxa %l4, [%g0 + TLB_TAG_ACCESS] %asi stxa %l5, [%g0] ASI_DMMU_DATA_IN .Ldtlb_next: membar #Sync flush %l4 add %l2, PTE_SIZE, %l2 add %l3, 1, %l3 ba %xcc, .Ldtlb_loop nop .Ldtlb_done: LDULNG [%l0...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
281
340
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:9
ULONG 4b-1b DATA(mp_tramp_itlb_slots) ULONG 3b-1b DATA(mp_tramp_func) ULONG 5b-1b DATA(mp_tramp_ci) ULONG 7b-1b .text .align 32 /* * IPI handler to store the current FPU state. * void sparc64_ipi_save_fpstate(void *); * * On entry: * %g2 = lwp */ ENTRY(sparc64_ipi_save_fpstate) sethi %hi(FPLWP), %g1 LDP...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
321
380
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:10
bnz,pn %icc, 6f ! Check alignment #endif st %g0, [%g3 + FS_QSIZE - FS_REGS] ! f->fs_qsize = 0; btst FPRS_DL|FPRS_DU, %g5 ! Both FPU halves clean? bz,pt %icc, 5f ! Then skip it mov CTX_PRIMARY, %g2 ldxa [%g2] ASI_DMMU, %g6 membar #LoadStore stxa %g0, [%g2] ASI_DMMU ! Switch MMU to kernel primary context mem...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
361
420
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:11
#ifdef DIAGNOSTIC !! !! Damn thing is *NOT* aligned on a 64-byte boundary !! 6: wr %g0, FPRS_FEF, %fprs ! XXX -- we should panic instead of silently entering debugger ta 1 nop ba,a ret_from_intr_vector nop #endif /* * IPI handler to drop the current FPU state. * void sparc64_ipi_drop_fpstate(void *); * ...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
401
460
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:12
* %g2 = pa * %g3 = line_size */ ENTRY(sparc64_ipi_dcache_flush_page_usiii) set NBPG, %g1 add %g2, %g1, %g1 ! end address 1: stxa %g0, [%g2] ASI_DCACHE_INVALIDATE add %g2, %g3, %g2 cmp %g2, %g1 bl,pt %xcc, 1b nop sethi %hi(KERNBASE), %g5 flush %g5 membar #Sync ba,a ret_from_intr_vector nop ENTRY(sparc...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
441
500
NetBSD/src:sys/arch/sparc64/sparc64/mp_subr.S:13
membar #LoadStore stxa %g0, [%g2] ASI_DCACHE_TAG ba,pt %icc, 1b membar #StoreLoad 2: sethi %hi(KERNBASE), %g5 flush %g5 membar #Sync ba,a ret_from_intr_vector nop #ifdef SUN4V ENTRY(sparc64_ipi_dcache_flush_page_sun4v) set NBPG, %o1 call hv_mem_sync mov %g2, %o0 cmp %o0, 0 be,pt %icc, 1f nop sir ...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/mp_subr.S
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/mp_subr.S
481
511
NetBSD/src:sys/arch/sparc64/sparc64/sigcode32.s:3
* . * . * [%sp + NNN] last word of saved state * (followed by previous stack contents or top of signal stack). * The address of the function to call is in %g1; the old %g1 and %o0 * have already been saved in the sigcontext. We are running in a clean * window, all previous windows now being saved to the ...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sigcode32.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sigcode32.s
81
140
NetBSD/src:sys/arch/sparc64/sparc64/sigcode32.s:4
st %fsr, [%sp + CCFSZ + 0] std %f0, [%sp + CCFSZ + 8] std %f2, [%sp + CCFSZ + 16] std %f4, [%sp + CCFSZ + 24] std %f6, [%sp + CCFSZ + 32] std %f8, [%sp + CCFSZ + 40] std %f10, [%sp + CCFSZ + 48] std %f12, [%sp + CCFSZ + 56] std %f14, [%sp + CCFSZ + 64] std %f16, [%sp + CCFSZ + 72] std %f18, [%sp + CCFSZ + 80]...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sigcode32.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sigcode32.s
121
180
NetBSD/src:sys/arch/sparc64/sparc64/sigcode32.s:5
ldd [%sp + CCFSZ + 72], %f16 ldd [%sp + CCFSZ + 80], %f18 ldd [%sp + CCFSZ + 88], %f20 ldd [%sp + CCFSZ + 96], %f22 ldd [%sp + CCFSZ + 104], %f24 ldd [%sp + CCFSZ + 112], %f26 ldd [%sp + CCFSZ + 120], %f28 ldd [%sp + CCFSZ + 128], %f30 1: mov %l2, %g2 mov %l3, %g3 mov %l4, %g4 mov %l5, %g5 mov %l6, %g6 mo...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sigcode32.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sigcode32.s
161
183
NetBSD/src:sys/arch/sparc64/sparc64/sunos_sigcode.s:3
* . * [%sp + NNN] last word of saved state * (followed by previous stack contents or top of signal stack). * The address of the function to call is in %g1; the old %g1 and %o0 * have already been saved in the sigcontext. We are running in a clean * window, all previous windows now being saved to the stack. *...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sunos_sigcode.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sunos_sigcode.s
81
140
NetBSD/src:sys/arch/sparc64/sparc64/sunos_sigcode.s:4
st %fsr, [%sp + CCFSZ + 0] std %f0, [%sp + CCFSZ + 8] std %f2, [%sp + CCFSZ + 16] std %f4, [%sp + CCFSZ + 24] std %f6, [%sp + CCFSZ + 32] std %f8, [%sp + CCFSZ + 40] std %f10, [%sp + CCFSZ + 48] std %f12, [%sp + CCFSZ + 56] std %f14, [%sp + CCFSZ + 64] std %f16, [%sp + CCFSZ + 72] std %f18, [%sp + CCFSZ + 80]...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sunos_sigcode.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sunos_sigcode.s
121
180
NetBSD/src:sys/arch/sparc64/sparc64/sunos_sigcode.s:5
ldd [%sp + CCFSZ + 64], %f14 ldd [%sp + CCFSZ + 72], %f16 ldd [%sp + CCFSZ + 80], %f18 ldd [%sp + CCFSZ + 88], %f20 ldd [%sp + CCFSZ + 96], %f22 ldd [%sp + CCFSZ + 104], %f24 ldd [%sp + CCFSZ + 112], %f26 ldd [%sp + CCFSZ + 120], %f28 ldd [%sp + CCFSZ + 128], %f30 1: mov %l2, %g2 mov %l3, %g3 mov %l4, %g4 ...
sparc
gas-like
handwritten
NetBSD/src
sys/arch/sparc64/sparc64/sunos_sigcode.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sparc64/sparc64/sunos_sigcode.s
161
186
NetBSD/src:sys/arch/sun2/sun2/locore.s:3
#include "opt_compat_netbsd.h" #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 ne...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun2/sun2/locore.s
81
140
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun2/sun2/locore.s
121
180
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
* %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
movl %sp@(4), %d1 | get our AND mask 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 ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd
github
kernel
https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/sys/arch/sun2/sun2/locore.s
201
239
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
* %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
rts #endif /* * 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. Why yo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun2/sun2/locore.s
201
259
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
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 symbols are never | referenced by any...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
8880cd809caeff042211f0fc4a46fb72034c53a9
github
kernel
https://github.com/NetBSD/src/blob/8880cd809caeff042211f0fc4a46fb72034c53a9/sys/arch/sun2/sun2/locore.s
241
259
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
* %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
/* * Save and restore 68881 state. */ ENTRY(m68881_save) ENTRY(m68881_restore) #ifdef DIAGNOSTIC movl #Lsr0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a soft * c...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
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 movew _C_LABEL(enable_reg_soft), %d0 | get the result movsw %d0, SYSTEM_ENAB | install the r...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
77232dcadc6b560bf38f2f6d53d5fd087a321d0c
github
kernel
https://github.com/NetBSD/src/blob/77232dcadc6b560bf38f2f6d53d5fd087a321d0c/sys/arch/sun2/sun2/locore.s
241
270
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
* %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
#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 /* * Set or clear bits in the enable register. This mimics the * strange behavior in SunOS' locore.o, where they keep a s...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
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 movew _C_LABEL(enable_reg_soft), %d0 | get the result movsw %d0, SYSTEM_ENAB | install ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
24fab1f688656739569c70f3f91e765774ab6a17
github
kernel
https://github.com/NetBSD/src/blob/24fab1f688656739569c70f3f91e765774ab6a17/sys/arch/sun2/sun2/locore.s
241
271
NetBSD/src:sys/arch/sun2/sun2/locore.s:5
* %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
#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 depends on the variable: delay_divisor...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
#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 concurrent-safe ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
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 aligned copy routines. */ #include <m68k/m68k/w16copy.s> | ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
f2ce59a6d8d16200463f724551c08168384da7b8
github
kernel
https://github.com/NetBSD/src/blob/f2ce59a6d8d16200463f724551c08168384da7b8/sys/arch/sun2/sun2/locore.s
281
302
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
121
180
NetBSD/src:sys/arch/sun2/sun2/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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If we are not on tmpstk switch to it. | (so debugger can change the stack pointer) movl %a6,%d1 cmpl #_ASM_LABEL(tmpstk),%d1 jls Lbrkpt2 | already on tmpstk | Copy frame to the t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/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_REST...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
#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 _C_LABEL(panic) /*NOTREACHED*/ #else rts #endif /* * _delay(unsigned N)...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
*/ #ifdef __ELF__ .align 8 #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. ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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 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 | i...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
579bea99f8d7b146dccdb8ef94846e9e8fa5b579
github
kernel
https://github.com/NetBSD/src/blob/579bea99f8d7b146dccdb8ef94846e9e8fa5b579/sys/arch/sun2/sun2/locore.s
361
387
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4048739f64f9f6795ecd90b007c27a0d9eb0187c
github
kernel
https://github.com/NetBSD/src/blob/4048739f64f9f6795ecd90b007c27a0d9eb0187c/sys/arch/sun2/sun2/locore.s
121
180
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
121
180
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. jra _C_LABEL(main) | main() (never returns) | Tha...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
* - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ GLOBAL(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 btst #5,%sp@(FR_HW) | was supervisor...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack pointer may have been modified, or | data below it modified (by 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 %...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
* interrupt vector table for reset is NOT at address zero. * (The MMU has a "boot" bit that forces access to the PROM) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #undef FPCOPROC #include <m68k/m68k/switch_subr.s> /* loadustp, ptest_addr */ #ifdef DIAGNOSTIC ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
* which should be set based on the CPU clock rate. * XXX: Currently this is set based on the CPU model, * XXX: but this should be determined at run time... */ GLOBAL(_delay) | %d0 = arg = (usecs << 8) movl %sp@(4),%d0 | %d1 = delay_divisor; movl _C_LABEL(delay_divisor),%d1 /* * Align the branch target of the...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
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: 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 th...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5
github
kernel
https://github.com/NetBSD/src/blob/74159c5b65be4f5b7abf2b9c3bdbc4f7b0dddcf5/sys/arch/sun2/sun2/locore.s
361
403
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
121
180
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
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
| T=1 S=0 trace trap from user mode | T=0 S=1 trace trap on a trap instruction | T=1 S=1 trace trap from system mode (kernel breakpoint) movw %sp@(FR_HW),%d1 | get PSW notw %d1 | XXX no support for T0 on 680[234]0 andw #PSL_TS,%d1 | from system mode (T=1, S=1)? jeq _ASM_LABEL(kbrkpt) | yes, kernel brk...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
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 want. We know | the trap type is either T_TRACE or T_BREAKPOINT. mo...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
.align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot loader. This works on Sun machines because the...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
#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 should be set based on the CPU clock rate. * XXX: Currently this is set based ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
* 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. Why you * can't just ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
361
415
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
/* * 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 error...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
0e9f528cd1d385d284b40217066690e8f6089104
github
kernel
https://github.com/NetBSD/src/blob/0e9f528cd1d385d284b40217066690e8f6089104/sys/arch/sun2/sun2/locore.s
401
415
NetBSD/src:sys/arch/sun2/sun2/locore.s:4
| old-school "g0" and "g4" commands from the monitor. (I.e., | they need to be reachable using 16-bit displacements from PCs | 0 and 4). ENTRY(g0_entry) jra _C_LABEL(g0_handler) ENTRY(g4_entry) jra _C_LABEL(g4_handler) L_high_code: | We are now running in the correctly relocated kernel, so | we are no longer restri...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun2/sun2/locore.s
121
180
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
a39353bf6b628008801a75f2010c6a02115acde7
github
kernel
https://github.com/NetBSD/src/blob/a39353bf6b628008801a75f2010c6a02115acde7/sys/arch/sun2/sun2/locore.s
161
220
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
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
Lfp0: .asciz "fpfault" .even /* * Handles all other FP coprocessor exceptions. * Since we can never have an FP coprocessor, this just panics. */ GLOBAL(fpfault) movl #Lfp0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ /* * Other exceptions only cause four and six word stack frame and require * no post-trap stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
* Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the kernel) * - trace traps for SUN binaries (not fully supported yet) * User mode traps are simply passed to trap(). */ GLOBAL(trap15) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRAP15,%d0 btst #5,%sp@(...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
| the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) addql #4,%sp | pop args | The stack pointer may have been modified, or | data below it modified (by kgdb push call), | so push the hardware frame at the current sp | before restoring registers and re...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
* 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) */ /* * Primitives */ /* * Use common m68k process/lwp switch and context save subroutines. */ #undef FPCOPROC #include <m68k/m68...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
* This routine depends on the variable: delay_divisor * which should be set based on the CPU clock rate. * XXX: Currently this is set based on the CPU model, * XXX: but this should be determined at run time... */ GLOBAL(_delay) | %d0 = arg = (usecs << 8) movl %sp@(4),%d0 | %d1 = delay_divisor; movl _C_LABEL(de...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
*/ 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: 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...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
e4d072bbebc4aede06e5d2f12fe49a506e655806
github
kernel
https://github.com/NetBSD/src/blob/e4d072bbebc4aede06e5d2f12fe49a506e655806/sys/arch/sun2/sun2/locore.s
401
444
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
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
Lfp0: .asciz "fpfault" .even /* * Handles all other FP coprocessor exceptions. * Since we can never have an FP coprocessor, this just panics. */ GLOBAL(fpfault) movl #Lfp0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ /* * Other exceptions only cause four and six word stack frame and require * no post-trap stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
movw %sp@(FR_HW),%d1 | get PSW notw %d1 | XXX no support for T0 on 680[234]0 andw #PSL_TS,%d1 | from system mode (T=1, S=1)? jeq _ASM_LABEL(kbrkpt) | yes, kernel brkpt jra _ASM_LABEL(fault) | no, user-mode fault /* * Trap 15 is used for: * - GDB breakpoints (in user programs) * - KGDB breakpoints (in the k...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
movl %a0@+,%a1@+ subql #4,%d1 bgt Lbrkpt1 Lbrkpt2: | Call the trap handler for the kernel debugger. | Do not call trap() to handle it, so that we can | set breakpoints in trap() if we want. We know | the trap type is either T_TRACE or T_BREAKPOINT. movl %d0,%sp@- | push trap type jbsr _C_LABEL(trap_kdebug) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
INTERRUPT_SAVEREG jbsr _C_LABEL(clock_intr) INTERRUPT_RESTOREREG jra _ASM_LABEL(rei) /* * Initialization is at the beginning of this file, because the * kernel entry point needs to be at zero for compatibility with * the Sun boot loader. This works on Sun machines because the * interrupt vector table for reset...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
/*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, * XXX: but this should be determined at run time... *...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
* 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, but it may jive with sun3/intreg.c using the single-instruction * bit operations and the sun3 intreg being memory-addressab...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
401
452
NetBSD/src:sys/arch/sun2/sun2/locore.s:12
#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... .set _KERNBASE,KERNBASE .set _MONSTART,SUN2_MONST...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
d7b3090516af177c5278a3cb2afae3e973c80bbe
github
kernel
https://github.com/NetBSD/src/blob/d7b3090516af177c5278a3cb2afae3e973c80bbe/sys/arch/sun2/sun2/locore.s
441
452
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
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
Lfp0: .asciz "fpfault" .even /* * Handles all other FP coprocessor exceptions. * Since we can never have an FP coprocessor, this just panics. */ GLOBAL(fpfault) movl #Lfp0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ /* * Other exceptions only cause four and six word stack frame and require * no post-trap stac...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
GLOBAL(trap12) jra _ASM_LABEL(rei) | all done /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed on to trap(). */ GLOBAL(trace) clrl %sp@- | stack adjust count moveml #0xFFFF,%sp@- moveq #T_TRACE,%d0 | Check PSW and see what happen. | T=0 S=0 (should not happen) ...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
241
300
NetBSD/src:sys/arch/sun2/sun2/locore.s:8
| Kernel-mode breakpoint or trace trap. (%d0=trap_type) | Save the system sp rather than the user sp. movw #PSL_HIGHIPL,%sr | lock out interrupts lea %sp@(FR_SIZE),%a6 | Save stack pointer movl %a6,%sp@(FR_SP) | from before trap | If we are not on tmpstk switch to it. | (so debugger can change the stack pointe...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
281
340
NetBSD/src:sys/arch/sun2/sun2/locore.s:9
movl %sp@,%sp | ... and sp rte | all done /* * Interrupt handlers. Most are auto-vectored, * and hard-wired the same way on all sun3 models. * Format in the stack is: * %d0,%d1,%a0,%a1, sr, pc, vo */ /* clock: see clock.c */ #ifdef __ELF__ .align 4 #else .align 2 #endif GLOBAL(_isr_clock) INTERRUPT_SA...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
321
380
NetBSD/src:sys/arch/sun2/sun2/locore.s:10
/* 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 _C_LABEL(panic) /*NOTREACHED*/ #else rts #end...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/sys/arch/sun2/sun2/locore.s
361
420
NetBSD/src:sys/arch/sun2/sun2/locore.s:11
* operations and that the loop will run from a single cache * half-line. */ #ifdef __ELF__ .align 8 #else .align 3 #endif L_delay: subl %d1,%d0 jgt L_delay rts /* * 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 t...
x86_64
gas-like
handwritten
NetBSD/src
sys/arch/sun2/sun2/locore.s
BSD-2-Clause
4c465e6270cbb133d0b73973b89f8d3ed0d19c25
github
kernel
https://github.com/NetBSD/src/blob/4c465e6270cbb133d0b73973b89f8d3ed0d19c25/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
fd89440ac6bfc9214810e1056f80b69c2878b7ba
github
kernel
https://github.com/NetBSD/src/blob/fd89440ac6bfc9214810e1056f80b69c2878b7ba/sys/arch/sun2/sun2/locore.s
161
220
NetBSD/src:sys/arch/sun2/sun2/locore.s:6
Lfp0: .asciz "fpfault" .even /* * Handles all other FP coprocessor exceptions. * Since we can never have an FP coprocessor, this just panics. */ GLOBAL(fpfault) movl #Lfp0,%sp@- jbsr _C_LABEL(panic) /*NOTREACHED*/ /* * Other exceptions only cause four and six word stack frame and require * no post-trap stac...
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
201
260
NetBSD/src:sys/arch/sun2/sun2/locore.s:7
jra _ASM_LABEL(rei) | all done /* * Trap 12 is the entry point for the cachectl "syscall" * cachectl(command, addr, length) * command in %d0, addr in %a1, length in %d1 */ GLOBAL(trap12) jra _ASM_LABEL(rei) | all done /* * Trace (single-step) trap. Kernel-mode is special. * User mode traps are simply passed...
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
241
300