source: rtems/c/src/lib/libbsp/i386/pc386/startup/bspcmdline.c @ ba64905

4.115
Last change on this file since ba64905 was ba64905, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 28, 2011 at 8:35:34 PM

2011-01-28 Joel Sherrill <joel.sherrilL@…>

  • clock/rtc.c, console/console.c, console/inch.c, console/outch.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, startup/bspcmdline.c, startup/bspstart.c, startup/ldsegs.S, timer/timer.c, timer/timerisr.S: Fix typo where license said found in found in.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1/*-------------------------------------------------------------------------+
2| This file contains the PC386 BSP startup package. It includes application,
3| board, and monitor specific initialization and configuration. The generic CPU
4| dependent initialization has been performed before this routine is invoked.
5+--------------------------------------------------------------------------+
6| (C) Copyright 2009 RTEMS Project
7|     Chris Johns (chrisj@rtems.org)
8+--------------------------------------------------------------------------+
9| Disclaimer:
10|
11| This file is provided "AS IS" without warranty of any kind, either
12| expressed or implied.
13+--------------------------------------------------------------------------+
14| This code is based on:
15|   common sense
16| With the following copyright notice:
17| **************************************************************************
18| *  COPYRIGHT (c) 1989-2008.
19| *  On-Line Applications Research Corporation (OAR).
20| *
21| *  The license and distribution terms for this file may be
22| *  found in the file LICENSE in this distribution or at
23| *  http://www.rtems.com/license/LICENSE.
24| **************************************************************************
25|
26|  $Id$
27+--------------------------------------------------------------------------*/
28
29#include <bsp.h>
30#include <rtems/pci.h>
31#include <libcpu/cpuModel.h>
32
33/*
34 *  External data
35 */
36extern uint32_t _boot_multiboot_flags;
37extern uint32_t _boot_multiboot_memory[2];
38extern const char _boot_multiboot_cmdline[256];
39
40/*-------------------------------------------------------------------------+
41|         Function: bsp_cmdline
42|      Description: Call when you want the command line.
43| Global Variables: The multiboot values copied from the loader.
44|        Arguments: None.
45|          Returns: The whole command line.
46+--------------------------------------------------------------------------*/
47const char* bsp_cmdline( void )
48{
49  return _boot_multiboot_cmdline;
50}
51
52/*-------------------------------------------------------------------------+
53|         Function: bsp_cmdline_arg
54|      Description: Call to search for an argument.
55| Global Variables: The multiboot values copied from the loader.
56|        Arguments: The option start.
57|          Returns: The option if found or nothing.
58+--------------------------------------------------------------------------*/
59const char* bsp_cmdline_arg( const char* arg )
60{
61  return strstr (bsp_cmdline (), arg);
62}
Note: See TracBrowser for help on using the repository browser.