if APPLE_DRIVER, set the default unit to the boot unit

This commit is contained in:
Laurent Vivier 2008-08-12 13:55:44 +00:00
parent fa06e26c9f
commit 4e79c0b645

View File

@ -23,6 +23,10 @@
#include "vga.h"
#include "serial.h"
#if defined(APPLE_DRIVER)
extern int *boot_unit;
#endif
#define MSG_STATE_0 console_set_cursor_position(win.l + win.h + 1, 1); \
printf(" Press 'b' or [RETURN] to boot or 'e' to edit\n");
@ -195,6 +199,10 @@ int read_config(emile_l2_header_t* info, emile_config_t *econfig)
return -1;
}
#if defined(APPLE_DRIVER)
stream_set_default(*boot_unit);
#endif
configuration = open_config(info);
if (config_get_property(configuration, "vga", property) != -1)