예제 #1
0
/*
 * Low-level read and write register routines; the Altera UART is little
 * endian, so we byte swap 32-bit reads and writes.
 */
static inline uint32_t
uart_data_read(void)
{

	return (mips_ioread_uint32le(mips_phys_to_uncached(CHERI_UART_BASE +
	    ALTERA_JTAG_UART_DATA_OFF)));
}
예제 #2
0
static inline uint32_t
uart_control_read(void)
{

	return (mips_ioread_uint32le(mips_phys_to_uncached(CHERI_UART_BASE +
	    ALTERA_JTAG_UART_CONTROL_OFF)));
}
예제 #3
0
static inline void
uart_control_write(uint32_t v)
{

	mips_iowrite_uint32le(mips_phys_to_uncached(CHERI_UART_BASE +
	    ALTERA_JTAG_UART_DATA_OFF), v);
}
예제 #4
0
파일: plat.c 프로젝트: CTSRD-CHERI/cherios
void hw_reboot(void) {

#ifdef HARDWARE_qemu
	/* Used to quit Qemu */
	mips_iowrite_uint8(mips_phys_to_uncached(0x1f000000 + 0x00500), 0x42);
#endif

	for(;;);
}