Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenhwinit.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Boot Loader 00003 * LICENSE: BSD - See COPYING.ARM in the top level directory 00004 * FILE: boot/armllb/hw/versatile/hwinit.c 00005 * PURPOSE: LLB Hardware Initialization Routines for Versatile 00006 * PROGRAMMERS: ReactOS Portable Systems Group 00007 */ 00008 00009 #include "precomp.h" 00010 00011 VOID 00012 NTAPI 00013 LlbHwInitialize(VOID) 00014 { 00015 /* Setup the CLCD (PL110) */ 00016 LlbHwVersaClcdInitialize(); 00017 00018 /* Setup the UART (PL011) */ 00019 LlbHwVersaUartInitialize(); 00020 00021 /* Setup the KMI (PL050) */ 00022 LlbHwVersaKmiInitialize(); 00023 } 00024 00025 // 00026 // Should go to hwdev.c 00027 // 00028 POSLOADER_INIT 00029 NTAPI 00030 LlbHwLoadOsLoaderFromRam(VOID) 00031 { 00032 ULONG Base, RootFs, Size; 00033 PCHAR Offset; 00034 CHAR CommandLine[64]; 00035 00036 /* On versatile we load the RAMDISK with initrd */ 00037 LlbEnvGetRamDiskInformation(&RootFs, &Size); 00038 00039 /* The OS Loader is at 0x20000, always */ 00040 Base = 0x20000; 00041 00042 /* Read image offset */ 00043 Offset = LlbEnvRead("rdoffset"); 00044 00045 /* Set parameters for the OS loader */ 00046 sprintf(CommandLine, "rdbase=0x%x rdsize=0x%x rdoffset=%s", RootFs, Size, Offset); 00047 LlbSetCommandLine(CommandLine); 00048 00049 /* Return the OS loader base address */ 00050 return (POSLOADER_INIT)Base; 00051 } 00052 00053 00054 /* EOF */ Generated on Fri May 25 2012 04:17:06 for ReactOS by
1.7.6.1
|