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:
@@ -71,6 +71,8 @@ ConsoleHandle::WriteAt(void */*cookie*/, off_t /*pos*/, const void *buffer, size
|
|||||||
string += length;
|
string += length;
|
||||||
bufferSize -= length;
|
bufferSize -= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return string - (char *)buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -128,8 +128,8 @@ platform_get_boot_device(struct stage2_args *args, Node **_device)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
platform_get_boot_partition(struct stage2_args *args, NodeList *list,
|
platform_get_boot_partition(struct stage2_args *args, Node *device,
|
||||||
boot::Partition **_partition)
|
NodeList *list, boot::Partition **_partition)
|
||||||
{
|
{
|
||||||
NodeIterator iterator = list->Iterator();
|
NodeIterator iterator = list->Iterator();
|
||||||
boot::Partition *partition = NULL;
|
boot::Partition *partition = NULL;
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
** 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.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
#include <boot/platform.h>
|
||||||
#include <boot/stage2.h>
|
#include <boot/stage2.h>
|
||||||
#include <boot/heap.h>
|
#include <boot/heap.h>
|
||||||
#include <platform_arch.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
|
void
|
||||||
_start(uint32 _unused1, uint32 _unused3, void *openFirmwareEntry)
|
_start(uint32 _unused1, uint32 _unused3, void *openFirmwareEntry)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user