Changeset 193d280c in mainline for boot/arch


Ignore:
Timestamp:
2015-06-01T00:04:05Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
53031c2
Parents:
91deaff
Message:

cstyle improvements
replace traditional K&R-style function declarations and definitions

Location:
boot/arch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/mm.c

    r91deaff r193d280c  
    193193}
    194194
    195 static void enable_paging()
    196 {
    197         /* c3   - each two bits controls access to the one of domains (16)
     195static void enable_paging(void)
     196{
     197        /*
     198         * c3   - each two bits controls access to the one of domains (16)
    198199         * 0b01 - behave as a client (user) of a domain
    199200         */
     
    232233
    233234/** Start the MMU - initialize page table and enable paging. */
    234 void mmu_start() {
     235void mmu_start(void)
     236{
    235237        disable_paging();
    236238#ifdef PROCESSOR_ARCH_armv7_a
  • boot/arch/ppc32/include/asm.h

    r91deaff r193d280c  
    3535extern void jump_to_kernel(void *, void *, size_t, void *)
    3636    __attribute__((noreturn));
    37 extern void real_mode();
     37extern void real_mode(void);
    3838
    3939#endif
  • boot/arch/sparc32/src/ambapp.c

    r91deaff r193d280c  
    5858static void ambapp_scan_area(uintptr_t, unsigned int);
    5959
    60 void ambapp_scan()
     60void ambapp_scan(void)
    6161{
    6262        amba_fake = false;
     
    104104}
    105105
    106 void ambapp_qemu_fake_scan()
     106void ambapp_qemu_fake_scan(void)
    107107{
    108108        /* UART */
     
    134134}
    135135
    136 bool ambapp_fake()
     136bool ambapp_fake(void)
    137137{
    138138        return amba_fake;
    139139}
    140140
    141 void ambapp_print_devices()
     141void ambapp_print_devices(void)
    142142{
    143143        printf("ABMA devices:\n");
  • boot/arch/sparc32/src/mm.c

    r91deaff r193d280c  
    7676}
    7777
    78 static void mmu_disable()
     78static void mmu_disable(void)
    7979{
    8080        uint32_t cr = asi_u32_read(ASI_MMUREGS, 0x000);
Note: See TracChangeset for help on using the changeset viewer.