U-Boot: fix warnings
This commit is contained in:
@@ -45,10 +45,12 @@ static SerialConsole sSerial;
|
||||
FILE *stdin, *stdout, *stderr;
|
||||
|
||||
|
||||
/*
|
||||
static void
|
||||
scroll_up()
|
||||
{
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// #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)
|
||||
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);
|
||||
|
||||
MemoryDisk* disk = new(nothrow) MemoryDisk(
|
||||
|
||||
@@ -165,9 +165,13 @@ serial_init_fdt(const void *fdt)
|
||||
|| fdt_node_check_compatible(fdt, node, "ns16550") == 1) {
|
||||
gUART = arch_get_uart_8250(regs, clock);
|
||||
//dprintf("serial: using 8250\n");
|
||||
// XXX:assume speed is already set
|
||||
(void)speed;
|
||||
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,
|
||||
stackTop);
|
||||
|
||||
panic("kernel returned!\n");
|
||||
panic("kernel returned %lx!\n", error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user