/* %o0: cpuid * %o1: pc * %o2: rtba * %o3: arg0 * * returns %o0: status
*/
ENTRY(sun4v_cpu_start)
mov HV_FAST_CPU_START, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_start)
/* %o0: cpuid * * returns %o0: status
*/
ENTRY(sun4v_cpu_stop)
mov HV_FAST_CPU_STOP, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_stop)
/* returns %o0: status */
ENTRY(sun4v_cpu_yield)
mov HV_FAST_CPU_YIELD, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_yield)
/* %o0: cpuid * * returns %o0: status
*/
ENTRY(sun4v_cpu_poke)
mov HV_FAST_CPU_POKE, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_poke)
/* %o0: type * %o1: queue paddr * %o2: num queue entries * * returns %o0: status
*/
ENTRY(sun4v_cpu_qconf)
mov HV_FAST_CPU_QCONF, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_qconf)
/* %o0: num cpus in cpu list * %o1: cpu list paddr * %o2: mondo block paddr * * returns %o0: status
*/
ENTRY(sun4v_cpu_mondo_send)
mov HV_FAST_CPU_MONDO_SEND, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_cpu_mondo_send)
/* %o0: CPU ID * * returns %o0: -status if status non-zero, else * %o0: cpu state as HV_CPU_STATE_*
*/
ENTRY(sun4v_cpu_state)
mov HV_FAST_CPU_STATE, %o5
ta HV_FAST_TRAP
brnz,pn %o0, 1f sub %g0, %o0, %o0
mov %o1, %o0
1: retl
nop
ENDPROC(sun4v_cpu_state)
/* %o0: virtual address * %o1: must be zero * %o2: TTE * %o3: HV_MMU_* flags * * returns %o0: status
*/
ENTRY(sun4v_mmu_map_perm_addr)
mov HV_FAST_MMU_MAP_PERM_ADDR, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_mmu_map_perm_addr)
/* %o0: number of TSB descriptions * %o1: TSB descriptions real address * * returns %o0: status
*/
ENTRY(sun4v_mmu_tsb_ctx0)
mov HV_FAST_MMU_TSB_CTX0, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_mmu_tsb_ctx0)
/* %o0: API group number * %o1: pointer to unsigned long major number storage * %o2: pointer to unsigned long minor number storage * * returns %o0: status
*/
ENTRY(sun4v_get_version)
mov HV_CORE_GET_VER, %o5
mov %o1, %o3
mov %o2, %o4
ta HV_CORE_TRAP stx %o1, [%o3]
retl stx %o2, [%o4]
ENDPROC(sun4v_get_version)
/* %o0: API group number * %o1: desired major number * %o2: desired minor number * %o3: pointer to unsigned long actual minor number storage * * returns %o0: status
*/
ENTRY(sun4v_set_version)
mov HV_CORE_SET_VER, %o5
mov %o3, %o4
ta HV_CORE_TRAP
retl stx %o1, [%o4]
ENDPROC(sun4v_set_version)
/* %o0: pointer to unsigned long time * * returns %o0: status
*/
ENTRY(sun4v_tod_get)
mov %o0, %o4
mov HV_FAST_TOD_GET, %o5
ta HV_FAST_TRAP stx %o1, [%o4]
retl
nop
ENDPROC(sun4v_tod_get)
/* %o0: time * * returns %o0: status
*/
ENTRY(sun4v_tod_set)
mov HV_FAST_TOD_SET, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_tod_set)
/* %o0: pointer to unsigned long status * * returns %o0: signed character
*/
ENTRY(sun4v_con_getchar)
mov %o0, %o4
mov HV_FAST_CONS_GETCHAR, %o5 clr %o0 clr %o1
ta HV_FAST_TRAP stx %o0, [%o4]
retl sra %o1, 0, %o0
ENDPROC(sun4v_con_getchar)
/* %o0: signed long character * * returns %o0: status
*/
ENTRY(sun4v_con_putchar)
mov HV_FAST_CONS_PUTCHAR, %o5
ta HV_FAST_TRAP
retl sra %o0, 0, %o0
ENDPROC(sun4v_con_putchar)
/* %o0: buffer real address * %o1: buffer size * %o2: pointer to unsigned long bytes_written * * returns %o0: status
*/
ENTRY(sun4v_con_write)
mov %o2, %o4
mov HV_FAST_CONS_WRITE, %o5
ta HV_FAST_TRAP stx %o1, [%o4]
retl
nop
ENDPROC(sun4v_con_write)
/* %o0: soft state * %o1: address of description string * * returns %o0: status
*/
ENTRY(sun4v_mach_set_soft_state)
mov HV_FAST_MACH_SET_SOFT_STATE, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_mach_set_soft_state)
/* %o0: exit code * * Does not return.
*/
ENTRY(sun4v_mach_exit)
mov HV_FAST_MACH_EXIT, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_mach_exit)
/* %o0: buffer real address * %o1: buffer length * %o2: pointer to unsigned long real_buf_len * * returns %o0: status
*/
ENTRY(sun4v_mach_desc)
mov %o2, %o4
mov HV_FAST_MACH_DESC, %o5
ta HV_FAST_TRAP stx %o1, [%o4]
retl
nop
ENDPROC(sun4v_mach_desc)
/* %o0: new timeout in milliseconds * %o1: pointer to unsigned long orig_timeout * * returns %o0: status
*/
ENTRY(sun4v_mach_set_watchdog)
mov %o1, %o4
mov HV_FAST_MACH_SET_WATCHDOG, %o5
ta HV_FAST_TRAP
brnz,a,pn %o4, 0f stx %o1, [%o4]
0: retl
nop
ENDPROC(sun4v_mach_set_watchdog)
EXPORT_SYMBOL(sun4v_mach_set_watchdog)
/* No inputs and does not return. */
ENTRY(sun4v_mach_sir)
mov %o1, %o4
mov HV_FAST_MACH_SIR, %o5
ta HV_FAST_TRAP stx %o1, [%o4]
retl
nop
ENDPROC(sun4v_mach_sir)
/* %o0: channel * %o1: ra * %o2: num_entries * * returns %o0: status
*/
ENTRY(sun4v_ldc_tx_qconf)
mov HV_FAST_LDC_TX_QCONF, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_ldc_tx_qconf)
/* %o0: channel * %o1: pointer to unsigned long ra * %o2: pointer to unsigned long num_entries * * returns %o0: status
*/
ENTRY(sun4v_ldc_tx_qinfo)
mov %o1, %g1
mov %o2, %g2
mov HV_FAST_LDC_TX_QINFO, %o5
ta HV_FAST_TRAP stx %o1, [%g1] stx %o2, [%g2]
retl
nop
ENDPROC(sun4v_ldc_tx_qinfo)
/* %o0: channel * %o1: pointer to unsigned long head_off * %o2: pointer to unsigned long tail_off * %o2: pointer to unsigned long chan_state * * returns %o0: status
*/
ENTRY(sun4v_ldc_tx_get_state)
mov %o1, %g1
mov %o2, %g2
mov %o3, %g3
mov HV_FAST_LDC_TX_GET_STATE, %o5
ta HV_FAST_TRAP stx %o1, [%g1] stx %o2, [%g2] stx %o3, [%g3]
retl
nop
ENDPROC(sun4v_ldc_tx_get_state)
ENTRY(sun4v_m7_set_perfreg)
mov HV_FAST_M7_SET_PERFREG, %o5
ta HV_FAST_TRAP
retl
nop
ENDPROC(sun4v_m7_set_perfreg)
/* %o0: address of CCB array * %o1: size (in bytes) of CCB array * %o2: flags * %o3: reserved * * returns: * %o0: status * %o1: size (in bytes) of the CCB array that was accepted * %o2: status data * %o3: reserved
*/
ENTRY(sun4v_ccb_submit)
mov %o5, %g1
mov HV_CCB_SUBMIT, %o5
ta HV_FAST_TRAP stx %o1, [%o4]
retl stx %o2, [%g1]
ENDPROC(sun4v_ccb_submit)
EXPORT_SYMBOL(sun4v_ccb_submit)
/* %o0: completion area ra for the ccb to get info * * returns: * %o0: status * %o1: CCB state * %o2: position * %o3: dax unit * %o4: queue
*/
ENTRY(sun4v_ccb_info)
mov %o1, %g1
mov HV_CCB_INFO, %o5
ta HV_FAST_TRAP
sth %o1, [%g1 + CCB_INFO_OFFSET_CCB_STATE]
sth %o2, [%g1 + CCB_INFO_OFFSET_QUEUE_POS]
sth %o3, [%g1 + CCB_INFO_OFFSET_DAX_UNIT]
retl
sth %o4, [%g1 + CCB_INFO_OFFSET_QUEUE_NUM]
ENDPROC(sun4v_ccb_info)
EXPORT_SYMBOL(sun4v_ccb_info)
/* %o0: completion area ra for the ccb to kill * * returns: * %o0: status * %o1: result of the kill
*/
ENTRY(sun4v_ccb_kill)
mov %o1, %g1
mov HV_CCB_KILL, %o5
ta HV_FAST_TRAP
retl
sth %o1, [%g1]
ENDPROC(sun4v_ccb_kill)
EXPORT_SYMBOL(sun4v_ccb_kill)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.