Bring back ext2 code from branch
[reactos.git] / reactos / boot / freeldr / freeldr / arch / arm / macharm.c
1 /*
2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: boot/freeldr/arch/arm/marcharm.c
5 * PURPOSE: Provides abstraction between the ARM Boot Loader and FreeLDR
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include <freeldr.h>
12
13 /* GLOBALS ********************************************************************/
14
15 PARM_BOARD_CONFIGURATION_BLOCK ArmBoardBlock;
16 ULONG BootDrive, BootPartition;
17
18 /* FUNCTIONS ******************************************************************/
19
20 VOID
21 ArmInit(IN PARM_BOARD_CONFIGURATION_BLOCK BootContext)
22 {
23 //
24 // Remember the pointer
25 //
26 ArmBoardBlock = BootContext;
27
28 //
29 // Let's make sure we understand the boot-loader
30 //
31 ASSERT(ArmBoardBlock->MajorVersion == ARM_BOARD_CONFIGURATION_MAJOR_VERSION);
32 ASSERT(ArmBoardBlock->MinorVersion == ARM_BOARD_CONFIGURATION_MINOR_VERSION);
33
34 //
35 // This should probably go away once we support more boards
36 //
37 ASSERT(ArmBoardBlock->BoardType == ARM_FEROCEON);
38
39 //
40 // Call FreeLDR's portable entrypoint with our command-line
41 //
42 BootMain(ArmBoardBlock->CommandLine);
43 }
44