mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-06 20:30:29 +00:00
41bca35c1e
This patch adds code to initialize the Global Descriptor Table. For simplicity, the memory is organized following the flat model. Thus, memory appears to Contiki as a single, continuous address space. Code, data, and stack are all contained in this address space (so called linear address space). The macros to manipulate bits from segment descriptor and the set_descriptor() helper are based on the ones described in [1]. [1] http://wiki.osdev.org/GDT_Tutorial