altos/lisp: Add save/restore infrastructure. Needs OS support to work.
authorKeith Packard <keithp@keithp.com>
Sat, 12 Nov 2016 05:16:09 +0000 (21:16 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:50 +0000 (11:16 -0800)
commitdba374516ed396633659dec571b6a44b03da8ad1
tree623d48c9ea938db3788ee96f9827ae13389108cd
parent29c890b4599b3bbdbd09a5915ea68a63f4e0a9ac
altos/lisp: Add save/restore infrastructure. Needs OS support to work.

This sticks a few globals past the end of the heap and then asks the
OS to save the heap. On restore, the heap is re-populated by the OS
and then various global variables reset.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/Makefile
src/lisp/ao_lisp.h
src/lisp/ao_lisp_builtin.c
src/lisp/ao_lisp_eval.c
src/lisp/ao_lisp_make_const.c
src/lisp/ao_lisp_save.c [new file with mode: 0644]