Changeset 437ee6a4 in mainline for arch/mips32/include/arg.h


Ignore:
Timestamp:
2005-10-30T13:49:39Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df91be5
Parents:
2cd0485d
Message:

sparc64 work.
Add context_save(), context_set() and context_restore().
Remove putchar() definition from ofw.c.
Add sparc64 putchar().
Add ppc32 putchar() (i.e. the original ofw.c putchar()).
Make arg.h use the builtin va_* constructs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/arg.h

    r2cd0485d r437ee6a4  
    3030#define __mips32_ARG_H__
    3131
    32 //#include <stackarg.h>
    33 
    3432#include <arch/types.h>
    3533
     
    4038
    4139#define va_start(ap, lst)               \
    42         (ap).pos = sizeof(lst);                         \
     40        (ap).pos = sizeof(lst);         \
    4341        (ap).last = (__u8 *) &(lst)
    4442
    4543/**
    46 * va_arg macro for MIPS32 - problem is that 64 bit values must be aligned on an 8-byte boundary (32bit values not)
    47 * To satisfy this, paddings must be sometimes inserted.
    48 */
     44 * va_arg macro for MIPS32 - problem is that 64 bit values must be aligned on an 8-byte boundary (32bit values not)
     45 * To satisfy this, paddings must be sometimes inserted.
     46 */
    4947#define va_arg(ap, type)                \
    5048        (*((type *)((ap).last + ((ap).pos  += sizeof(type) + ((sizeof(type)==8)&&(((ap).pos)&(4))?4:0)) - sizeof(type))))
Note: See TracChangeset for help on using the changeset viewer.