Add cpu registers and task interface