Skip to content
  • Marcel Moolenaar's avatar
    Add locking to the hardware drivers. I intended to figure out more · 06287620
    Marcel Moolenaar authored
    precisely where locking would be needed before adding it, but it
    seems uart(4) draws slightly too much attention to have it without
    locking for too long.
    The lock added is a spinlock that protects access to the underlying
    hardware. As a first and obvious stab at this, each method of the
    hardware interface grabs the lock. Roughly speaking this serializes
    the methods. Exceptions are the probe, attach and detach methods.
    06287620