Changeset f02ffca in rtems


Ignore:
Timestamp:
Feb 6, 1998, 1:47:09 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
5599d6e
Parents:
02d19d8
Message:

Problem report from Brian Cuthie regarding incorrect calculation
of BSS size. The conversion from a count of u8's to a count of
u32's was shifting in the wrong direction. This error had been in
the start code a long time. It had not caused problems because
the BSS is typically much smaller than the C heap which typically
follows it in memory. Plus since this code was executed at start
time, all that really happened was an extra zeroing of some memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/start/start.s

    r02d19d8 rf02ffca  
    166166        movl    $ SYM (_bss_start), edi # edi = beginning of .bss
    167167        subl    edi, ecx                # ecx = size of .bss in bytes
    168         shll    ecx                     # size of .bss in longs
     168        shrl    ecx                     # size of .bss in longs
     169        shrl    ecx
    169170        xorl    eax, eax                # value to clear out memory
    170171        repne                           # while ecx != 0
Note: See TracChangeset for help on using the changeset viewer.