smp: enable smp

This is a very large patch. Don't feel like splitting it up.

Change locking discipline for rbtrees. Most changes are this.

Fix stack init logic for application processors, and start them up.

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-13 14:07:55 -04:00
commit 3e5abada9b
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
17 changed files with 123 additions and 52 deletions

View file

@ -38,6 +38,16 @@ rbnode_t *rbt_successor(rbnode_t *node);
u64 rbt_next_key(rbtree_t *tree);
rbnode_t *rbt_minimum(rbnode_t *node);
static inline void rbt_lock(rbtree_t *tree)
{
spinlock_acquire(&tree->lock);
}
static inline void rbt_unlock(rbtree_t *tree)
{
spinlock_release(&tree->lock);
}
void rbt_init();
#endif /* _rbtree_tH_ */