1. 26 Mar, 2017 3 commits
  2. 25 Mar, 2017 5 commits
  3. 24 Mar, 2017 7 commits
  4. 23 Mar, 2017 13 commits
  5. 22 Mar, 2017 7 commits
  6. 21 Mar, 2017 2 commits
  7. 20 Mar, 2017 3 commits
    • Damien George's avatar
      stmhal/pendsv: Disable interrupts during a thread switch. · ebbaf7ee
      Damien George authored
      We can actually handle interrupts during a thread switch (because we always
      have a valid stack), but only if those interrupts don't access any of the
      thread state (because the state may not correspond to the stack pointer).
      So to be on the safe side we disable interrupts during the very short
      period of the thread state+stack switch.
    • Damien George's avatar
      py/vm: Don't release the GIL if the scheduler is locked. · 1a5c8d10
      Damien George authored
      The scheduler being locked general means we are running a scheduled
      function, and switching to another thread violates that, so don't switch in
      such a case (even though we technically could).
      And if we are running a scheduled function then we want to finish it ASAP,
      so we shouldn't switch to another thread.
      Furthermore, ports with threading enabled will lock the scheduler during a
      hard IRQ, and this patch to the VM will make sure that threads are not
      switched during a hard IRQ (which would crash the VM).
    • Peter Hinch's avatar
      extmod/modframebuf: Add support for monochrome horizontal format. · 231cfc84
      Peter Hinch authored
      MHLSB and MHMSB formats are added to the framebuf module, which have 8
      adjacent horizontal pixels represented in a single byte.