Changeset 5f70118 in mainline for kernel/arch/mips32/src/debug/stacktrace.c
- Timestamp:
- 2010-01-10T12:16:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77a64f
- Parents:
- 309ede1 (diff), 1ac3a52 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debug/stacktrace.c
r309ede1 r5f70118 1 1 /* 2 * Copyright (c) 20 05Jakub Jermar2 * Copyright (c) 2010 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libcia3229 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 /* 36 * Variable argument list manipulation macros 37 * for architectures using stack to pass arguments. 38 */ 39 40 #ifndef LIBC_ia32_STACKARG_H_ 41 #define LIBC_ia32_STACKARG_H_ 35 #include <stacktrace.h> 36 #include <syscall/copy.h> 37 #include <arch/types.h> 38 #include <typedefs.h> 42 39 43 #include <sys/types.h> 40 bool kernel_frame_pointer_validate(uintptr_t fp) 41 { 42 return false; 43 } 44 44 45 /* dont allow to define it second time in stdarg.h */ 46 #define __VARARGS_DEFINED 45 bool kernel_frame_pointer_prev(uintptr_t fp, uintptr_t *prev) 46 { 47 return false; 48 } 47 49 48 typedef struct va_list { 49 int pos; 50 uint8_t *last;51 } va_list;50 bool kernel_return_address_get(uintptr_t fp, uintptr_t *ra) 51 { 52 return false; 53 } 52 54 53 #define va_start(ap, lst) \ 54 (ap).pos = sizeof(lst); \ 55 (ap).last = (uint8_t *) &(lst) 55 bool uspace_frame_pointer_validate(uintptr_t fp) 56 { 57 return false; 58 } 56 59 57 #define va_arg(ap, type) \ 58 (*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type)))) 60 bool uspace_frame_pointer_prev(uintptr_t fp, uintptr_t *prev) 61 { 62 return false; 63 } 59 64 60 #define va_end(ap)61 62 63 #endif 65 bool uspace_return_address_get(uintptr_t fp, uintptr_t *ra) 66 { 67 return false; 68 } 64 69 65 70 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.