mirror of
https://github.com/drasko/codezero.git
synced 2026-03-03 11:03:16 +01:00
Compilation errors resolved for 2009Q3 toolchains.
This commit is contained in:
@@ -91,6 +91,11 @@ typedef __builtin_va_list va_list;
|
|||||||
#define va_arg(ap, type) __builtin_va_arg((ap), type)
|
#define va_arg(ap, type) __builtin_va_arg((ap), type)
|
||||||
#define va_copy(dest, src) __builtin_va_copy((ap), type)
|
#define va_copy(dest, src) __builtin_va_copy((ap), type)
|
||||||
#define va_end(ap) __builtin_va_end((ap))
|
#define va_end(ap) __builtin_va_end((ap))
|
||||||
#define va_start(ap, parmN) __builtin_stdarg_start((ap), (parmN))
|
|
||||||
|
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
|
||||||
|
#define va_start(v,l)__builtin_va_start((v),l)
|
||||||
|
#else
|
||||||
|
#define va_start(v,l)__builtin_stdarg_start((v),l)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _STDARG_H_ */
|
#endif /* _STDARG_H_ */
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ struct svc_image *bootdesc_get_image_byname(char *name)
|
|||||||
|
|
||||||
void read_boot_params()
|
void read_boot_params()
|
||||||
{
|
{
|
||||||
int npages;
|
int npages = 0;
|
||||||
struct bootdesc *bootdesc;
|
struct bootdesc *bootdesc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ typedef __builtin_va_list va_list;
|
|||||||
#define va_arg(ap, type) __builtin_va_arg((ap), type)
|
#define va_arg(ap, type) __builtin_va_arg((ap), type)
|
||||||
#define va_copy(dest, src) __builtin_va_copy((ap), type)
|
#define va_copy(dest, src) __builtin_va_copy((ap), type)
|
||||||
#define va_end(ap) __builtin_va_end((ap))
|
#define va_end(ap) __builtin_va_end((ap))
|
||||||
#define va_start(ap, parmN) __builtin_stdarg_start((ap), (parmN))
|
|
||||||
|
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
|
||||||
|
#define va_start(v,l)__builtin_va_start((v),l)
|
||||||
|
#else
|
||||||
|
#define va_start(v,l)__builtin_stdarg_start((v),l)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _STDARG_H_ */
|
#endif /* _STDARG_H_ */
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ void setup_dummy_current()
|
|||||||
|
|
||||||
void init_finalize(struct kernel_resources *kres)
|
void init_finalize(struct kernel_resources *kres)
|
||||||
{
|
{
|
||||||
volatile register unsigned int stack asm("sp");
|
volatile register unsigned int stack;
|
||||||
volatile register unsigned int newstack;
|
volatile register unsigned int newstack;
|
||||||
struct ktcb *first_task;
|
struct ktcb *first_task;
|
||||||
struct container *c;
|
struct container *c;
|
||||||
@@ -269,6 +269,7 @@ void init_finalize(struct kernel_resources *kres)
|
|||||||
|
|
||||||
/* Switch to new stack */
|
/* Switch to new stack */
|
||||||
stack = newstack;
|
stack = newstack;
|
||||||
|
asm("mov sp, %0\n\t"::"r"(stack));
|
||||||
|
|
||||||
/* -- Point of no stack unwinding -- */
|
/* -- Point of no stack unwinding -- */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user