Changeset 44186b01 in mainline for kernel/genarch/include


Ignore:
Timestamp:
2013-04-06T16:39:00Z (13 years ago)
Author:
Beniamino Galvani <b.galvani@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3deb0155
Parents:
f22f679
Message:

bcm2835: statically allocate framebuffer descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/drivers/bcm2835/mbox.h

    rf22f679 r44186b01  
    8484#define MBOX_ADDR_ALIGN         16
    8585
    86 #define ALLOC_PROP_BUFFER(name,type)                                    \
    87         char _tmp[sizeof(type) + MBOX_ADDR_ALIGN] = { 0 };              \
    88         type *name = (type *)ALIGN_UP((uint32_t)_tmp, MBOX_ADDR_ALIGN);
     86#define MBOX_BUFF_ALLOC(name, type)                                     \
     87        char tmp_ ## name[sizeof(type) + MBOX_ADDR_ALIGN] = { 0 };      \
     88        type *name = (type *)ALIGN_UP((uintptr_t)tmp_ ## name, MBOX_ADDR_ALIGN);
    8989
    9090typedef struct {
Note: See TracChangeset for help on using the changeset viewer.