添加musl libc.

This commit is contained in:
root
2023-08-23 00:42:36 +08:00
parent 6ee0deb010
commit d0d3c7ffb7
1806 changed files with 97335 additions and 63 deletions

View File

@@ -1,3 +1,29 @@
#pragma once
#include <stdint.h>
#include "u_types.h"
#define FACTORY_PROT 1
#define THREAD_PROT 2
#define TASK_PROT 3
#define LOG_PROT 4
#define IPC_PROT 5
typedef struct msg_tag
{
union
{
umword_t raw;
struct
{
umword_t type : 4;
umword_t type2 : 8;
umword_t prot : (sizeof(umword_t) * 8) - 12;
};
};
} msg_tag_t;
#define msg_tag_init(r) \
((msg_tag_t){.raw = (r)})
#define msg_tag_init3(t, t2, p) \
msg_tag_init(((umword_t)(t)&0xf) | (((umword_t)(t2)&0xff) << 4) | (((umword_t)(p)) << 12))