? Makefile ? Makefile.in ? aclocal.m4 ? autom4te.cache ? config.guess ? config.log ? config.status ? config.sub ? configure ? depcomp ? diff ? foo.S ? foo.bin ? foo.elf ? install-sh ? missing ? simulavr-disp.1 ? simulavr.1 ? simulavr.spec ? doc/Makefile ? doc/Makefile.in ? doc/doxygen.config ? doc/html ? doc/internals ? doc/internals_html ? doc/mdate-sh ? doc/simulavr.info ? doc/stamp-vti ? doc/version.texi ? regress/Makefile ? regress/Makefile.in ? regress/regress.py ? regress/modules/Makefile ? regress/test_opcodes/Makefile ? src/.deps ? src/Makefile ? src/Makefile.in ? src/config-h.in ? src/config.h ? src/simulavr.away ? src/stamp-h1 ? src/disp/.deps ? src/disp/Makefile ? src/disp/Makefile.in ? src/disp/simulavr-disp ? src/disp-vcd/.deps ? src/disp-vcd/Makefile ? src/disp-vcd/Makefile.in ? src/disp-vcd/config_parser.c ? src/disp-vcd/config_parser.h ? src/disp-vcd/config_scanner.c ? src/disp-vcd/simulavr-vcd ? src/getopt/.deps ? src/getopt/Makefile ? src/getopt/Makefile.in ? test_asm/Makefile ? test_asm/Makefile.in ? test_asm/test_8515/Makefile ? test_asm/test_8515/Makefile.in ? test_asm/test_8515/test_blink ? test_asm/test_8515/test_blink.bin ? test_asm/test_8515/test_blink.elf ? test_asm/test_8515/test_blink.hex ? test_asm/test_8515/test_blink.lst ? test_asm/test_8515/test_cntr ? test_asm/test_8515/test_cntr.bin ? test_asm/test_8515/test_cntr.elf ? test_asm/test_8515/test_cntr.hex ? test_asm/test_8515/test_cntr.lst ? test_asm/test_8515/test_eeprom ? test_asm/test_8515/test_eeprom.bin ? test_asm/test_8515/test_eeprom.elf ? test_asm/test_8515/test_eeprom.hex ? test_asm/test_8515/test_eeprom.lst ? test_asm/test_8515/test_port ? test_asm/test_8515/test_port.bin ? test_asm/test_8515/test_port.elf ? test_asm/test_8515/test_port.hex ? test_asm/test_8515/test_port.lst ? test_asm/test_8515/test_stack ? test_asm/test_8515/test_stack.bin ? test_asm/test_8515/test_stack.elf ? test_asm/test_8515/test_stack.hex ? test_asm/test_8515/test_stack.lst ? test_asm/test_8515/test_toie0 ? test_asm/test_8515/test_toie0.bin ? test_asm/test_8515/test_toie0.elf ? test_asm/test_8515/test_toie0.hex ? test_asm/test_8515/test_toie0.lst ? test_asm/test_8515/test_toie0_2 ? test_asm/test_8515/test_toie0_2.bin ? test_asm/test_8515/test_toie0_2.elf ? test_asm/test_8515/test_toie0_2.hex ? test_asm/test_8515/test_toie0_2.lst ? test_asm/test_8515/test_wdr ? test_asm/test_8515/test_wdr.bin ? test_asm/test_8515/test_wdr.elf ? test_asm/test_8515/test_wdr.hex ? test_asm/test_8515/test_wdr.lst ? test_asm/test_8515/test_wdr2 ? test_asm/test_8515/test_wdr2.bin ? test_asm/test_8515/test_wdr2.elf ? test_asm/test_8515/test_wdr2.hex ? test_asm/test_8515/test_wdr2.lst ? test_c/.deps ? test_c/Makefile ? test_c/Makefile.in ? test_c/deep_frame ? test_c/deep_frame.bin ? test_c/deep_frame.elf ? test_c/deep_frame.hex ? test_c/deep_frame.lst ? test_c/demo ? test_c/demo.bin ? test_c/demo.elf ? test_c/demo.hex ? test_c/demo.lst ? test_c/demo_kr ? test_c/demo_kr.bin ? test_c/demo_kr.elf ? test_c/demo_kr.hex ? test_c/demo_kr.lst ? test_c/timer ? test_c/timer.bin ? test_c/timer.elf ? test_c/timer.hex ? test_c/timer.lst Index: src/intvects.h =================================================================== RCS file: /sources/simulavr/simulavr/src/intvects.h,v retrieving revision 1.8 diff -u -u -r1.8 intvects.h --- src/intvects.h 16 Mar 2008 21:14:08 -0000 1.8 +++ src/intvects.h 29 Jun 2011 06:06:35 -0000 @@ -26,6 +26,8 @@ #ifndef SIM_INTVECTS_H #define SIM_INTVECTS_H +#include + enum _sleep_modes { SLEEP_MODE_IDLE, @@ -83,7 +85,7 @@ an index enumeration. */ #define irq_vect_table_index(vect) \ - ( ((unsigned int) (&( ((IntVectTable *)(0)) -> vect))) / sizeof(IntVect) ) + ( offsetof(IntVectTable, vect) / sizeof(IntVect) ) /* No device will have all of these vectors, but must define a structure which has a slot for each interrupt. If the device doesn't support the