summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/machine_pin.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-04-10 16:02:56 +1000
committerDamien George <damien.p.george@gmail.com>2017-04-10 16:02:56 +1000
commitee86de1f1a22c45548bc39916fcd2b72dd26ebca (patch)
tree716766c5ab42e6079058262c9d5b36a2b7b1ea6e /esp8266/machine_pin.c
parentb87432b8fb8332548be11b63c9139065ce565f91 (diff)
downloadmicropython-ee86de1f1a22c45548bc39916fcd2b72dd26ebca.tar.gz
micropython-ee86de1f1a22c45548bc39916fcd2b72dd26ebca.zip
py: Make sure that static emg-exc-buffer is aligned to size of mp_obj_t.
This buffer is used to allocate objects temporarily, and such objects require that their underlying memory be correctly aligned for their data type. Aligning for mp_obj_t should be sufficient for emergency exceptions, but in general the memory buffer should aligned to the maximum alignment of the machine (eg on a 32-bit machine with mp_obj_t being 4 bytes, a double may not be correctly aligned). This patch fixes a bug for certain nan-boxing builds, where mp_obj_t is 8 bytes and must be aligned to 8 bytes (even though the machine is 32 bit).
Diffstat (limited to 'esp8266/machine_pin.c')
0 files changed, 0 insertions, 0 deletions