-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6800: various fixes to things to line up with the compiler
This gets us into init but things then go wrong somewhere
- Loading branch information
1 parent
41f99af
commit 6c2600e
Showing
7 changed files
with
73 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
/* | ||
* This is a bit strange because our argments are left to right on | ||
* the stack. | ||
* stdarg.h - variable arguments | ||
* | ||
* From the ack cc | ||
* | ||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. | ||
* See the copyright notice in the ACK home directory, in the file "Copyright". | ||
*/ | ||
/* $Id$ */ | ||
|
||
#ifndef _STDARG_H | ||
#define _STDARG_H | ||
|
||
typedef unsigned char *va_list; | ||
|
||
#define __typesize(__type) (sizeof(__type) == 1 ? sizeof(int) : sizeof(__type)) | ||
typedef char* va_list; | ||
|
||
#define va_start(__ap, __last) ((__ap) = (va_list)(&(__last))) | ||
#define va_end(__ap) | ||
#define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1)) | ||
|
||
#define va_arg(__ap, __type) (*((__type *)(void *)(__ap -= __typesize(__type)))) | ||
#define va_start(ap, parmN) (ap = (va_list)&parmN + __vasz(parmN)) | ||
#define va_arg(ap, type) (*((type *)(void *)((ap += __vasz(type)) - __vasz(type)))) | ||
#define va_end(ap) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
/* | ||
* This is a bit strange because our argments are left to right on | ||
* the stack. | ||
* stdarg.h - variable arguments | ||
* | ||
* From the ack cc | ||
* | ||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. | ||
* See the copyright notice in the ACK home directory, in the file "Copyright". | ||
*/ | ||
/* $Id$ */ | ||
|
||
#ifndef _STDARG_H | ||
#define _STDARG_H | ||
|
||
typedef unsigned char *va_list; | ||
|
||
#define __typesize(__type) (sizeof(__type) == 1 ? sizeof(int) : sizeof(__type)) | ||
typedef char* va_list; | ||
|
||
#define va_start(__ap, __last) ((__ap) = (va_list)(&(__last))) | ||
#define va_end(__ap) | ||
#define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1)) | ||
|
||
#define va_arg(__ap, __type) (*((__type *)(void *)(__ap -= __typesize(__type)))) | ||
#define va_start(ap, parmN) (ap = (va_list)&parmN + __vasz(parmN)) | ||
#define va_arg(ap, type) (*((type *)(void *)((ap += __vasz(type)) - __vasz(type)))) | ||
#define va_end(ap) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters