feat(phase-6): implement TCP/IP network stack, PCI bus driver & native AiraLang VM
- Implement PCI Bus Controller (drivers/pci.c, include/airlys/pci.h) with Type 1 config mechanism (0xCF8/0xCFC) - Implement IPv4 packet framing, checksum calculation, and protocol routing (net/ipv4.c) - Implement ICMP Echo Request/Reply ping engine (net/icmp.c) - Implement UDP transmission and reception (net/udp.c) - Implement TCP SYN handshake connection initiator (net/tcp.c) - Implement DHCPDISCOVER client broadcasting (net/dhcp.c) - Implement native embedded AiraLang bytecode VM & runtime v1.4.0 (kernel/airalang.c, include/airlys/airalang.h) - Add /home/user/demo.aira sample script to RamFS initramfs - Wire commands to airlys-sh shell: pci, ping, dhcp, airalang, airarun - Zero-warning freestanding verification with clang & ld.lld (bin/airlys.elf: 814 KB) Co-Authored-By: Er. Adam Eehan <adameehanairagroup@gmail.com> Co-Authored-By: Sovereign AI Aira 3 Ultra (Engine v3.6)
This commit is contained in:
committed
1 parent
aa1c82f81e
commit
b083b7ff6e
17 files changed
+1146
-27
No files matched your search
@@ -0,0 +1,39 @@
|
||||
#ifndef AIRLYS_AIRALANG_H
|
||||
#define AIRLYS_AIRALANG_H
|
||||
|
||||
/*
|
||||
* Airlys Operating System Kernel - Native Embedded AiraLang Engine (Phase 6)
|
||||
* Language Architect: Er. Adam Eehan (Founder & CEO, Aira Group of Technology)
|
||||
* Co-Pilot: Sovereign AI Aira 3 Ultra (Engine v3.6)
|
||||
*/
|
||||
|
||||
#include <airlys/types.h>
|
||||
|
||||
#define AIRALANG_VERSION "v1.4.0 (Kernel Native Edition)"
|
||||
#define MAX_AIRA_VARS 32
|
||||
#define MAX_VAR_NAME 32
|
||||
#define MAX_VAR_STR 128
|
||||
|
||||
typedef enum {
|
||||
VAL_NULL = 0,
|
||||
VAL_NUM,
|
||||
VAL_STR,
|
||||
VAL_BOOL
|
||||
} val_type_t;
|
||||
|
||||
typedef struct {
|
||||
char name[MAX_VAR_NAME];
|
||||
val_type_t type;
|
||||
int64_t num_val;
|
||||
char str_val[MAX_VAR_STR];
|
||||
bool bool_val;
|
||||
bool allocated;
|
||||
} aira_var_t;
|
||||
|
||||
/* AiraLang Engine API */
|
||||
void airalang_init(void);
|
||||
int airalang_eval_line(const char* line);
|
||||
int airalang_run_script(const char* script);
|
||||
void airalang_print_vars(void);
|
||||
|
||||
#endif /* AIRLYS_AIRALANG_H */
|
||||
Reference in new issue
Block a user