Improved debug output.
start_kernel() now panics, so that we don't run through (since it doesn't actually jump to the kernel yet). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7256 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
|
** Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -59,11 +59,12 @@ load_kernel(stage2_args *args, Directory *volume)
|
|||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
printf("loading kernel failed!\n");
|
printf("loading kernel failed: %ld!\n", status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
puts("kernel loaded successfully");
|
puts("kernel loaded successfully");
|
||||||
|
|
||||||
/* void *cookie;
|
/* void *cookie;
|
||||||
if (volume->Open(&cookie, O_RDONLY) == B_OK) {
|
if (volume->Open(&cookie, O_RDONLY) == B_OK) {
|
||||||
char name[B_FILE_NAME_LENGTH];
|
char name[B_FILE_NAME_LENGTH];
|
||||||
@@ -106,5 +107,6 @@ void
|
|||||||
start_kernel()
|
start_kernel()
|
||||||
{
|
{
|
||||||
// shouldn't return...
|
// shouldn't return...
|
||||||
|
panic("starting the kernel is not yet implemented :)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user