Changeset f7219b2 in rtems


Ignore:
Timestamp:
05/21/04 15:26:20 (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
e2ce15fc
Parents:
922db65
Message:

2004-05-21 Till Strauman <strauman@…>

  • PR 624/bsps startup/bspstart.c: When probing the memory, make sure not to corrupt the application. Only probe addresses beyond rtemsFreeMemStart.
  • Let IBMPC_outch() convert LF -> CRLF to avoid printk scrambling the screen.
Location:
c/src/lib/libbsp/i386/pc386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r922db65 rf7219b2  
     12004-05-21  Till Strauman <strauman@slac.stanford.edu>
     2
     3        * PR 624/bsps
     4        startup/bspstart.c: When probing the memory, make sure not to
     5        corrupt the application. Only probe addresses beyond rtemsFreeMemStart.
     6        * Let IBMPC_outch() convert LF -> CRLF to avoid printk scrambling
     7        the screen.
     8
    192003-10-02      Till Strauman <strauman@slac.stanford.edu>
    210
  • c/src/lib/libbsp/i386/pc386/console/outch.c

    r922db65 rf7219b2  
    271271static int escaped = 0;
    272272
    273   if ( ! (escaped = handleEscape(escaped, c)) )
     273  if ( ! (escaped = handleEscape(escaped, c)) ) {
     274    if ( '\n' == c )
     275      videoPutChar('\r');
    274276        videoPutChar(c);
     277  }
    275278} /* _IBMPC_outch */
    276279
  • c/src/lib/libbsp/i386/pc386/startup/bspstart.c

    r922db65 rf7219b2  
    8383{
    8484  rtems_unsigned32 topAddr, val;
    85   int i;
     85  int i, lowest;
    8686 
    8787 
    8888  if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1))  /* not aligned => align it */
    8989    rtemsFreeMemStart = (rtemsFreeMemStart+CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
     90
     91  /* find the lowest 1M boundary to probe */
     92  lowest = ((rtemsFreeMemStart + (1<<20)) >> 20) + 1;
     93  if ( lowest  < 2 )
     94        lowest = 2;
     95
    9096
    9197  if(_heap_size == 0)
     
    96102       * let us first write
    97103       */
    98       for(i=2048; i>=2; i--)
     104      for(i=2048; i>=lowest; i--)
    99105        {
    100106          topAddr = i*1024*1024 - 4;
     
    102108        }
    103109
    104       for(i=2; i<=2048; i++)
     110      for(i=lowest; i<=2048; i++)
    105111        {
    106112          topAddr = i*1024*1024 - 4;
Note: See TracChangeset for help on using the changeset viewer.