Build original Ada port core, V client, and x86-64 boot milestone

This commit is contained in:
Admin committed 2026-11-01 16:07:00 +08:00
1 parent 9af96aa1e1
commit fc2bee6f32
28 files changed
+865 -7

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#include "agila_ports.h"
#include <assert.h>
#include <stddef.h>
int main(void) {
uint32_t h=agila_port_create(1), value=123;
assert(h!=0);
assert(agila_port_receive(h,1,NULL)==AGILA_INVALID_ARGUMENT);
assert(agila_port_send(h,1,0xffffffffu)==AGILA_OK);
assert(agila_port_receive(h,1,&value)==AGILA_OK && value==0xffffffffu);
assert(agila_port_receive(h,1,&value)==AGILA_EMPTY && value==0);
assert(agila_port_close(h,1)==AGILA_OK);
return 0;
}