U-Boot: fix warnings
This commit is contained in:
@@ -45,10 +45,12 @@ static SerialConsole sSerial;
|
|||||||
FILE *stdin, *stdout, *stderr;
|
FILE *stdin, *stdout, *stderr;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
static void
|
static void
|
||||||
scroll_up()
|
scroll_up()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ platform_add_boot_device(struct stage2_args *args, NodeList *devicesList)
|
|||||||
if (!args->platform.boot_tgz_data || !args->platform.boot_tgz_size)
|
if (!args->platform.boot_tgz_data || !args->platform.boot_tgz_size)
|
||||||
return B_DEVICE_NOT_FOUND;
|
return B_DEVICE_NOT_FOUND;
|
||||||
|
|
||||||
TRACE("Memory Disk at: %lx size: %lx\n", args->platform.boot_tgz_data,
|
TRACE("Memory Disk at: %p size: %lx\n", args->platform.boot_tgz_data,
|
||||||
args->platform.boot_tgz_size);
|
args->platform.boot_tgz_size);
|
||||||
|
|
||||||
MemoryDisk* disk = new(nothrow) MemoryDisk(
|
MemoryDisk* disk = new(nothrow) MemoryDisk(
|
||||||
|
|||||||
@@ -165,9 +165,13 @@ serial_init_fdt(const void *fdt)
|
|||||||
|| fdt_node_check_compatible(fdt, node, "ns16550") == 1) {
|
|| fdt_node_check_compatible(fdt, node, "ns16550") == 1) {
|
||||||
gUART = arch_get_uart_8250(regs, clock);
|
gUART = arch_get_uart_8250(regs, clock);
|
||||||
//dprintf("serial: using 8250\n");
|
//dprintf("serial: using 8250\n");
|
||||||
|
// XXX:assume speed is already set
|
||||||
|
(void)speed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for when we can use U-Boot's console
|
||||||
|
panic("Unknown UART type %s", type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ platform_start_kernel(void)
|
|||||||
status_t error = arch_start_kernel(&gKernelArgs, kernelEntry,
|
status_t error = arch_start_kernel(&gKernelArgs, kernelEntry,
|
||||||
stackTop);
|
stackTop);
|
||||||
|
|
||||||
panic("kernel returned!\n");
|
panic("kernel returned %lx!\n", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user