Skip to content

Commit

Permalink
Possibly fixed BootLoaderTest build.
Browse files Browse the repository at this point in the history
* Adapted to x86_64 changes.
  • Loading branch information
axeld committed Jan 25, 2013
1 parent 95a11c7 commit d013c8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tests/system/boot/loader/platform_start.cpp
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2003-2013, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/

Expand All @@ -25,7 +25,11 @@ platform_exit(void)
void
platform_start_kernel(void)
{
printf("*** jump to kernel at %p ***\n*** program exits.\n", (void *)gKernelArgs.kernel_image.elf_header.e_entry);
preloaded_elf32_image *image = static_cast<preloaded_elf32_image *>(
gKernelArgs.kernel_image.Pointer());

printf("*** jump to kernel at %p ***\n*** program exits.\n",
(void *)image->elf_header.e_entry);
exit(0);
}

Expand All @@ -40,4 +44,3 @@ main(int argc, char **argv)

return 0;
}

0 comments on commit d013c8e

Please sign in to comment.