Changeset 437ee6a4 in mainline for arch/mips32/include/arg.h
- Timestamp:
- 2005-10-30T13:49:39Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df91be5
- Parents:
- 2cd0485d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/arg.h
r2cd0485d r437ee6a4 30 30 #define __mips32_ARG_H__ 31 31 32 //#include <stackarg.h>33 34 32 #include <arch/types.h> 35 33 … … 40 38 41 39 #define va_start(ap, lst) \ 42 (ap).pos = sizeof(lst); 40 (ap).pos = sizeof(lst); \ 43 41 (ap).last = (__u8 *) &(lst) 44 42 45 43 /** 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 */ 49 47 #define va_arg(ap, type) \ 50 48 (*((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.