diff options
author | Keith Packard <keithp@keithp.com> | 2009-10-16 12:56:45 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-10-16 12:56:45 +0900 |
commit | d709a0688eff84e25e24d755850ef045d6b0c3de (patch) | |
tree | e5aa394224f57a3c324a6360419b420421680003 /src/ao_ee.c | |
parent | 69b6f6bb465163cf767bb68e0e4a716d8ad2b39c (diff) |
Save some DSEG space by marking cmd functions __reentrant
__reentrant causes the compiler to place args and locals on the stack
instead of in the data segment.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_ee.c')
-rw-r--r-- | src/ao_ee.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ao_ee.c b/src/ao_ee.c index 9b6db234..26cfb7fd 100644 --- a/src/ao_ee.c +++ b/src/ao_ee.c @@ -351,11 +351,11 @@ ao_ee_read_config(uint8_t *buf, uint16_t len) __reentrant } static void -ee_dump(void) +ee_dump(void) __reentrant { - __xdata uint8_t b; - __xdata uint16_t block; - __xdata uint8_t i; + uint8_t b; + uint16_t block; + uint8_t i; ao_cmd_hex(); block = ao_cmd_lex_i; @@ -377,13 +377,13 @@ ee_dump(void) } static void -ee_store(void) +ee_store(void) __reentrant { - __xdata uint16_t block; - __xdata uint8_t i; - __xdata uint16_t len; - __xdata uint8_t b; - __xdata uint32_t addr; + uint16_t block; + uint8_t i; + uint16_t len; + uint8_t b; + uint32_t addr; ao_cmd_hex(); block = ao_cmd_lex_i; |