Changeset 771cd22 in mainline for boot/genarch/ofw.c


Ignore:
Timestamp:
2006-12-16T19:07:02Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e7c8747
Parents:
1ecdbb0
Message:

Formatting and indentation changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw.c

    r1ecdbb0 r771cd22  
    234234}
    235235
    236 
     236/** Save OpenFirmware physical memory map.
     237 *
     238 * @param map Memory map structure where the map will be saved.
     239 *
     240 * @return Zero on failure, non-zero on success.
     241 */
    237242int ofw_memmap(memmap_t *map)
    238243{
     
    240245        unsigned int sc = ofw_get_size_cells(ofw_memory);
    241246
    242         uint32_t buf[((ac+sc)*MEMMAP_MAX_RECORDS)];
     247        uint32_t buf[((ac + sc) * MEMMAP_MAX_RECORDS)];
    243248        int ret = ofw_get_property(ofw_memory, "reg", buf, sizeof(buf));
    244249        if (ret <= 0)           /* ret is the number of written bytes */
     
    248253        map->total = 0;
    249254        map->count = 0;
    250         for (pos = 0; (pos < ret / sizeof(uint32_t)) && (map->count < MEMMAP_MAX_RECORDS); pos += ac + sc) {
     255        for (pos = 0; (pos < ret / sizeof(uint32_t)) && (map->count <
     256                MEMMAP_MAX_RECORDS); pos += ac + sc) {
    251257                void * start = (void *) ((uintptr_t) buf[pos + ac - 1]);
    252258                unsigned int size = buf[pos + ac + sc - 1];
Note: See TracChangeset for help on using the changeset viewer.