RTEMS5: redirect to serial via runtime
This commit is contained in:
committed by
Brendan Chandler
parent
5a5345d44a
commit
2b28d97063
@@ -45,6 +45,7 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/rtc.h>
|
||||
#include <rtems/tod.h>
|
||||
#include <rtems/sysinit.h>
|
||||
|
||||
#ifdef RTEMS_LEGACY_STACK
|
||||
#include <rtems/rtems_bsdnet.h>
|
||||
@@ -968,20 +969,6 @@ POSIX_Init (void *argument)
|
||||
* if BSP defaults aren't configured for running tests.
|
||||
*/
|
||||
|
||||
|
||||
/* Ensure that stdio goes to serial (so it can be captured) */
|
||||
#if defined(__i386__) && !USE_COM1_AS_CONSOLE
|
||||
#include <uart.h>
|
||||
#include <libchip/serial.h>
|
||||
|
||||
extern int BSPPrintkPort;
|
||||
void bsp_predriver_hook(void)
|
||||
{
|
||||
Console_Port_Minor = BSP_CONSOLE_PORT_COM1;
|
||||
BSPPrintkPort = BSP_CONSOLE_PORT_COM1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* reboot immediately when done. */
|
||||
#if defined(__i386__) && BSP_PRESS_KEY_FOR_RESET
|
||||
void bsp_cleanup(void)
|
||||
|
||||
@@ -39,7 +39,7 @@ if( $TA =~ /^win32-x86/ && $HA !~ /^win/ ) {
|
||||
|
||||
# Run pc386 test harness w/ QEMU
|
||||
} elsif( $TA =~ /^RTEMS-pc386-qemu$/ ) {
|
||||
$exec = "qemu-system-i386 -m 64 -no-reboot -serial stdio -display none -net nic,model=ne2k_pci -net user,restrict=yes -kernel $exe";
|
||||
$exec = "qemu-system-i386 -m 64 -no-reboot -serial stdio -display none -net nic,model=ne2k_pci -net user,restrict=yes -append --console=/dev/com1 -kernel $exe";
|
||||
|
||||
# Explicitly fail for other RTEMS targets
|
||||
} elsif( $TA =~ /^RTEMS-/ ) {
|
||||
|
||||
Reference in New Issue
Block a user