Changeset 8565a42 in mainline for kernel/genarch/src/multiboot


Ignore:
Timestamp:
2018-03-02T20:34:50Z (8 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

Location:
kernel/genarch/src/multiboot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/multiboot/multiboot.c

    r3061bc1 r8565a42  
    5252        if (end == NULL)
    5353                end = cmd_line + str_size(cmd_line);
    54        
     54
    5555        /*
    5656         * Find last occurence of '/' before 'end'. If found, place start at
     
    5959        const char *cp = end;
    6060        const char *start = buf;
    61        
     61
    6262        while (cp != start) {
    6363                if (*cp == '/') {
     
    6767                cp--;
    6868        }
    69        
     69
    7070        /* Copy the command. */
    7171        str_ncpy(buf, size, start, (size_t) (end - start));
     
    106106                if (init.cnt >= CONFIG_INIT_TASKS)
    107107                        break;
    108                
     108
    109109                init.tasks[init.cnt].paddr = mods[i].start;
    110110                init.tasks[init.cnt].size = mods[i].end - mods[i].start;
    111                
     111
    112112                /* Copy command line, if available. */
    113113                if (mods[i].string) {
     
    120120                        init.tasks[init.cnt].arguments[0] = 0;
    121121                }
    122                
     122
    123123                init.cnt++;
    124124        }
     
    128128{
    129129        uint32_t pos = 0;
    130        
     130
    131131        while ((pos < length) && (e820counter < MEMMAP_E820_MAX_RECORDS)) {
    132132                e820table[e820counter] = memmap->mm_info;
    133                
     133
    134134                /* Compute address of next structure. */
    135135                uint32_t size = sizeof(memmap->size) + memmap->size;
    136136                memmap = (multiboot_memmap_t *) ((uintptr_t) memmap + size);
    137137                pos += size;
    138                
     138
    139139                e820counter++;
    140140        }
     
    163163                multiboot_modules(info->mods_count,
    164164                    (multiboot_module_t *) MULTIBOOT_PTR(info->mods_addr));
    165        
     165
    166166        /* Copy memory map. */
    167167        if ((info->flags & MULTIBOOT_INFO_FLAGS_MMAP) != 0)
  • kernel/genarch/src/multiboot/multiboot2.c

    r3061bc1 r8565a42  
    5656                multiboot_extract_argument(init.tasks[init.cnt].arguments,
    5757                    CONFIG_TASK_ARGUMENTS_BUFLEN, module->string);
    58                
     58
    5959                init.cnt++;
    6060        }
     
    6666            ((uintptr_t) memmap + sizeof(*memmap));
    6767        uint32_t pos = sizeof(*memmap);
    68        
     68
    6969        while ((pos < length) && (e820counter < MEMMAP_E820_MAX_RECORDS)) {
    7070                e820table[e820counter].base_address = entry->base_address;
    7171                e820table[e820counter].size = entry->size;
    7272                e820table[e820counter].type = entry->type;
    73                
     73
    7474                /* Compute address of next entry. */
    7575                entry = (multiboot2_memmap_entry_t *)
    7676                    ((uintptr_t) entry + memmap->entry_size);
    7777                pos += memmap->entry_size;
    78                
     78
    7979                e820counter++;
    8080        }
     
    9090                bfb_bpp = fbinfo->bpp;
    9191                bfb_scanline = fbinfo->scanline;
    92                
     92
    9393                bfb_red_pos = fbinfo->rgb.red_pos;
    9494                bfb_red_size = fbinfo->rgb.red_size;
    95                
     95
    9696                bfb_green_pos = fbinfo->rgb.green_pos;
    9797                bfb_green_size = fbinfo->rgb.green_size;
    98                
     98
    9999                bfb_blue_pos = fbinfo->rgb.blue_pos;
    100100                bfb_blue_size = fbinfo->rgb.blue_size;
     
    116116        if (signature != MULTIBOOT2_LOADER_MAGIC)
    117117                return;
    118        
     118
    119119        const multiboot2_tag_t *tag = (const multiboot2_tag_t *)
    120120            ALIGN_UP((uintptr_t) info + sizeof(*info), MULTIBOOT2_TAG_ALIGN);
    121        
     121
    122122        while (tag->type != MULTIBOOT2_TAG_TERMINATOR) {
    123123                switch (tag->type) {
     
    135135                        break;
    136136                }
    137                
     137
    138138                tag = (const multiboot2_tag_t *)
    139139                    ALIGN_UP((uintptr_t) tag + tag->size, MULTIBOOT2_TAG_ALIGN);
Note: See TracChangeset for help on using the changeset viewer.