diff --git a/abstract-machine/klib/include/klib-macros.h b/abstract-machine/klib/include/klib-macros.h index 3e6fb67..d943b06 100644 --- a/abstract-machine/klib/include/klib-macros.h +++ b/abstract-machine/klib/include/klib-macros.h @@ -16,7 +16,7 @@ ({ for (const char *p = s; *p; p++) putch(*p); }) #define io_read(reg) \ - ({ static reg##_T __io_param; \ + ({ reg##_T __io_param; \ ioe_read(reg, (void*)&__io_param); \ __io_param; })