A few more minor fixes

This commit is contained in:
adamdunkels 2009-02-04 20:58:05 +00:00
parent 96882c402a
commit 5cf0c25ca6

View file

@ -102,7 +102,7 @@ write_byte(int fd, uint8_t c)
}/*---------------------------------------------------------------------------*/ }/*---------------------------------------------------------------------------*/
#if 0 #if 0
static void static void
write_array(int fd, unsigned char* mem, uint16_t len) write_array(int fd, unsigned char *mem, uint16_t len)
{ {
#if DATA_AS_HEX #if DATA_AS_HEX
int i; int i;
@ -169,10 +169,10 @@ thread_checkpoint(int fd)
#if INCLUDE_RAM #if INCLUDE_RAM
unsigned char *addr; unsigned char *addr;
uint16_t size = 0; uint16_t size = 0;
unsigned char* thread_mem_start = (unsigned char *)&checkpoint_thread.thread.stack; unsigned char *thread_mem_start = (unsigned char *)&checkpoint_thread.thread.stack;
unsigned char* thread_mem_end = thread_mem_start + sizeof(checkpoint_thread.thread.stack) - 1; unsigned char *thread_mem_end = thread_mem_start + sizeof(checkpoint_thread.thread.stack) - 1;
unsigned char* coffee_mem_start = cfs_coffee_get_fd_set(&size); unsigned char *coffee_mem_start = cfs_coffee_get_fd_set(&size);
unsigned char* coffee_mem_end = coffee_mem_start + size - 1; unsigned char *coffee_mem_end = coffee_mem_start + size - 1;
#endif /* INCLUDE_RAM */ #endif /* INCLUDE_RAM */
/*printf("protected thread memory: %u, size=%u\n", (uint16_t) thread_mem_start, sizeof(checkpoint_thread.thread.stack));*/ /*printf("protected thread memory: %u, size=%u\n", (uint16_t) thread_mem_start, sizeof(checkpoint_thread.thread.stack));*/
@ -237,10 +237,10 @@ thread_rollback(int fd)
#if INCLUDE_RAM #if INCLUDE_RAM
unsigned char *addr; unsigned char *addr;
uint16_t size = 0; uint16_t size = 0;
unsigned char* thread_mem_start = (unsigned char *)&checkpoint_thread.thread.stack; unsigned char *thread_mem_start = (unsigned char *)&checkpoint_thread.thread.stack;
unsigned char* thread_mem_end = thread_mem_start + sizeof(checkpoint_thread.thread.stack) - 1; unsigned char *thread_mem_end = thread_mem_start + sizeof(checkpoint_thread.thread.stack) - 1;
unsigned char* coffee_mem_start = cfs_coffee_get_fd_set(&size); unsigned char *coffee_mem_start = cfs_coffee_get_fd_set(&size);
unsigned char* coffee_mem_end = coffee_mem_start + size - 1; unsigned char *coffee_mem_end = coffee_mem_start + size - 1;
#endif /* INCLUDE_RAM */ #endif /* INCLUDE_RAM */
/*printf("protected thread memory: %u, size=%u\n", (uint16_t) thread_mem_start, sizeof(checkpoint_thread.thread.stack));*/ /*printf("protected thread memory: %u, size=%u\n", (uint16_t) thread_mem_start, sizeof(checkpoint_thread.thread.stack));*/