Changeset 3f7fe9e in mainline for boot/arch/riscv64/src/main.c


Ignore:
Timestamp:
2018-10-01T18:36:42Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5cef315
Parents:
1938b381
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-29 16:13:55)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-10-01 18:36:42)
Message:

Clean up headers

Depends on <limits.h> and <stdint.h> being provided, which is a step up from
depending on mostly undocumented predefined macros.
In principle, <limits.h> and <stdint.h> mostly describe properties of
the compiler, so even though we depend on certain values for their contents,
actually defining them in the library is kind of reversal of concerns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/riscv64/src/main.c

    r1938b381 r3f7fe9e  
    3232#include <arch/ucb.h>
    3333#include <arch/mm.h>
     34#include <arch/types.h>
    3435#include <version.h>
    3536#include <stddef.h>
     
    6465        bootinfo.memmap.zones[0].size = PHYSMEM_SIZE;
    6566
    66         printf("\nMemory statistics (total %llu MB, starting at %p)\n\n",
     67        printf("\nMemory statistics (total %" PRIu64 " MB, starting at %p)\n\n",
    6768            bootinfo.memmap.total >> 20, (void *) bootinfo.physmem_start);
    6869        printf(" %p: boot info structure\n", &bootinfo);
Note: See TracChangeset for help on using the changeset viewer.