Ported TinyQueue from AmebOs.

Added queueing features based on TinyQueue from AmebOs Rtos.