Changeset f6f22cdb in mainline for boot/arch/sparc32/include/asm.h


Ignore:
Timestamp:
2013-12-27T18:45:56Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32e8cd1
Parents:
e47ed05
Message:

code revision
coding style changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc32/include/asm.h

    re47ed05 rf6f22cdb  
    3232#include <typedefs.h>
    3333
    34 static inline uint32_t asi_u32_read(int asi, uintptr_t va)
     34extern uintptr_t boot_ctx_table;
     35
     36static inline uint32_t asi_u32_read(unsigned int asi, uintptr_t va)
    3537{
    3638        uint32_t v;
    37 
     39       
    3840        asm volatile (
    3941                "lda [%[va]] %[asi], %[v]\n"
    4042                : [v] "=r" (v)
    4143                : [va] "r" (va),
    42                   [asi] "i" ((unsigned int) asi)
     44                  [asi] "i" (asi)
    4345        );
    4446       
     
    4648}
    4749
    48 static inline void asi_u32_write(int asi, uintptr_t va, uint32_t v)
     50static inline void asi_u32_write(unsigned int asi, uintptr_t va, uint32_t v)
    4951{
    5052        asm volatile (
     
    5254                :: [v] "r" (v),
    5355                   [va] "r" (va),
    54                    [asi] "i" ((unsigned int) asi)
     56                   [asi] "i" (asi)
    5557                : "memory"
    5658        );
    5759}
    5860
    59 extern void jump_to_kernel(void *entry, bootinfo_t *bootinfo);
     61extern void jump_to_kernel(void *, bootinfo_t *);
    6062
    6163#endif
Note: See TracChangeset for help on using the changeset viewer.