We implemented console support (through serial port), for the current board types...
[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
17 /* FUNCTIONS ******************************************************************/
18
19 VOID
20 ArmInit(IN PARM_BOARD_CONFIGURATION_BLOCK BootContext)
21 {
22 //
23 // Remember the pointer
24 //
25 ArmBoardBlock = BootContext;
26
27 //
28 // Let's make sure we understand the boot-loader
29 //
30 ASSERT(ArmBoardBlock->MajorVersion == ARM_BOARD_CONFIGURATION_MAJOR_VERSION);
31 ASSERT(ArmBoardBlock->MinorVersion == ARM_BOARD_CONFIGURATION_MINOR_VERSION);
32
33 //
34 // This should probably go away once we support more boards
35 //
36 ASSERT(ArmBoardBlock->BoardType == ARM_FEROCEON);
37
38 //
39 // Call FreeLDR's portable entrypoint with our command-line
40 //
41 BootMain(ArmBoardBlock->CommandLine);
42 }
43