Got most of the new memory architecture roughed out.

This commit is contained in:
Simon Brooke 2026-03-25 11:24:33 +00:00
parent 19d6b0df29
commit 604fca3c24
36 changed files with 1118 additions and 0 deletions

30
src/c/payloads/free.h Normal file
View file

@ -0,0 +1,30 @@
/**
* payloads/free.h
*
* An unassigned object, on a freelist; may be of any size class.
*
* (c) 2026 Simon Brooke <simon@journeyman.cc>
* Licensed under GPL version 2.0, or, at your option, any later version.
*/
#ifndef __psse_payloads_free_h
#define __psse_payloads_free_h
#include "memory/pointer.h"
/**
* @brief Tag for an unassigned object; may be of any size class.
*/
#define FREETAG "FRE"
/**
* @brief An unassigned object, on a freelist; may be of any size class.
*
*/
struct free_payload {
/** the next object on the free list for my size class */
struct pso_pointer next;
};
#endif