![]() |
|
|||
File indexing completed on 2025-05-11 08:23:41
0001 /*-------------------------------------------------------------------------+ 0002 | This file contains the PC386 BSP startup package. It includes application, 0003 | board, and monitor specific initialization and configuration. The generic CPU 0004 | dependent initialization has been performed before this routine is invoked. 0005 +--------------------------------------------------------------------------+ 0006 | (C) Copyright 2009 RTEMS Project 0007 | Chris Johns (chrisj@rtems.org) 0008 +--------------------------------------------------------------------------+ 0009 | Disclaimer: 0010 | 0011 | This file is provided "AS IS" without warranty of any kind, either 0012 | expressed or implied. 0013 +--------------------------------------------------------------------------+ 0014 | This code is based on: 0015 | common sense 0016 | With the following copyright notice: 0017 | ************************************************************************** 0018 | * COPYRIGHT (c) 1989-2008. 0019 | * On-Line Applications Research Corporation (OAR). 0020 | * 0021 | * The license and distribution terms for this file may be 0022 | * found in the file LICENSE in this distribution or at 0023 | * http://www.rtems.org/license/LICENSE. 0024 | ************************************************************************** 0025 +--------------------------------------------------------------------------*/ 0026 0027 #include <bsp.h> 0028 #include <rtems/pci.h> 0029 #include <libcpu/cpuModel.h> 0030 0031 /* 0032 * External data 0033 */ 0034 extern uint32_t _boot_multiboot_flags; 0035 extern uint32_t _boot_multiboot_memory[2]; 0036 extern const char _boot_multiboot_cmdline[256]; 0037 0038 /*-------------------------------------------------------------------------+ 0039 | Function: bsp_cmdline 0040 | Description: Call when you want the command line. 0041 | Global Variables: The multiboot values copied from the loader. 0042 | Arguments: None. 0043 | Returns: The whole command line. 0044 +--------------------------------------------------------------------------*/ 0045 const char* bsp_cmdline( void ) 0046 { 0047 return _boot_multiboot_cmdline; 0048 } 0049 0050 /*-------------------------------------------------------------------------+ 0051 | Function: bsp_cmdline_arg 0052 | Description: Call to search for an argument. 0053 | Global Variables: The multiboot values copied from the loader. 0054 | Arguments: The option start. 0055 | Returns: The option if found or nothing. 0056 +--------------------------------------------------------------------------*/ 0057 const char* bsp_cmdline_arg( const char* arg ) 0058 { 0059 return strstr (bsp_cmdline (), arg); 0060 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |