Updated to match general boot loader changes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7294 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-04-22 01:13:20 +00:00
parent 3004a40b85
commit 3a4a20a09e
3 changed files with 15 additions and 4 deletions

View File

@ -71,6 +71,8 @@ ConsoleHandle::WriteAt(void */*cookie*/, off_t /*pos*/, const void *buffer, size
string += length;
bufferSize -= length;
}
return string - (char *)buffer;
}

View File

@ -1,5 +1,5 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
@ -128,8 +128,8 @@ platform_get_boot_device(struct stage2_args *args, Node **_device)
status_t
platform_get_boot_partition(struct stage2_args *args, NodeList *list,
boot::Partition **_partition)
platform_get_boot_partition(struct stage2_args *args, Node *device,
NodeList *list, boot::Partition **_partition)
{
NodeIterator iterator = list->Iterator();
boot::Partition *partition = NULL;

View File

@ -1,10 +1,11 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <OS.h>
#include <boot/platform.h>
#include <boot/stage2.h>
#include <boot/heap.h>
#include <platform_arch.h>
@ -77,6 +78,14 @@ determine_machine(void)
}
void
platform_start_kernel(void)
{
printf("kernel entry at %p\n", (void *)gKernelEntry);
of_exit();
}
void
_start(uint32 _unused1, uint32 _unused3, void *openFirmwareEntry)
{