interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

branch main Branches Tags History

physics-mv / machine_contract.json

177 lines · 4915 bytes Raw Blame History
1{
2 "contract_id": "CONTRACT-QEMU-VIRT-AARCH64-M2",
3 "version": "2.2.0",
4 "target_platform": "qemu-virt-aarch64",
5 "milestone": "PHYSICS_BOOT",
6 "architecture": {
7 "arch": "aarch64",
8 "endianness": "little",
9 "expected_entry_exception_level": "EL1",
10 "expected_entry_el_value": "0x04",
11 "physics_target_exception_level": "EL1"
12 },
13 "memory_map": {
14 "dram_base": "0x40000000",
15 "dram_size_bytes": 134217728,
16 "dram_end": "0x48000000",
17 "atlas_entry_base": "0x00000000",
18 "boot_descriptor_address": "0x401FE000",
19 "boot_descriptor_size_bytes": 64,
20 "physics_payload_base": "0x40200000",
21 "physics_image_base": "0x40200000",
22 "physics_image_size_bytes": 4096,
23 "physics_vector_table_base": "0x40201000",
24 "physics_vector_table_size_bytes": 2048,
25 "kernel_stack_base": "0x40201800",
26 "kernel_stack_top": "0x40205800",
27 "kernel_stack_size_bytes": 16384,
28 "boot_state_base": "0x40205800",
29 "boot_state_size_bytes": 2048,
30 "capability_table_base": "0x40206000",
31 "capability_table_size_bytes": 4096,
32 "static_data_base": "0x40207000",
33 "static_data_size_bytes": 4096,
34 "free_frame_base": "0x40208000",
35 "uart_mmio_base": "0x09000000",
36 "uart_flags_offset": 24,
37 "uart_txff_mask": 32
38 },
39 "anti_bloat_bounds": {
40 "max_text_bytes": 32768,
41 "max_total_image_bytes": 65536
42 },
43 "disjoint_regions": [
44 {
45 "name": "PHYSICS_IMAGE",
46 "start": "0x40200000",
47 "end": "0x40201000",
48 "size_bytes": 4096
49 },
50 {
51 "name": "PHYSICS_VECTOR_TABLE",
52 "start": "0x40201000",
53 "end": "0x40201800",
54 "size_bytes": 2048
55 },
56 {
57 "name": "PHYSICS_KERNEL_STACK",
58 "start": "0x40201800",
59 "end": "0x40205800",
60 "size_bytes": 16384
61 },
62 {
63 "name": "PHYSICS_BOOT_STATE",
64 "start": "0x40205800",
65 "end": "0x40206000",
66 "size_bytes": 2048
67 },
68 {
69 "name": "PHYSICS_CAPABILITY_TABLE",
70 "start": "0x40206000",
71 "end": "0x40207000",
72 "size_bytes": 4096
73 },
74 {
75 "name": "PHYSICS_STATIC_DATA",
76 "start": "0x40207000",
77 "end": "0x40208000",
78 "size_bytes": 4096
79 },
80 {
81 "name": "FREE_FRAME_REGION",
82 "start": "0x40208000",
83 "end": "0x48000000",
84 "size_bytes": 132087808
85 }
86 ],
87 "physics_entry_abi": {
88 "x0": "0x401FE000",
89 "x1_payload_size": 6144,
90 "x2_cookie": "0x5048595349435330",
91 "entry_point": "0x40200000",
92 "x1_payload_size_enforced": true
93 },
94 "boot_descriptor_contract": {
95 "expected_address": "0x401FE000",
96 "size_bytes": 64,
97 "magic": "0x4D424453435F3031",
98 "version": 1,
99 "length": 64,
100 "flags_reserved": 0,
101 "ram_base": "0x40000000",
102 "ram_size": "0x08000000",
103 "dram_end": "0x48000000",
104 "uart_base": "0x09000000",
105 "physics_base": "0x40200000",
106 "physics_size": 6144
107 },
108 "vector_table_spec": {
109 "base_address": "0x40201000",
110 "alignment_bytes": 2048,
111 "table_span_bytes": 2048,
112 "num_slots": 16,
113 "slot_stride_bytes": 128
114 },
115 "root_capability_spec": {
116 "anchor_address": "0x40206000",
117 "generation": 1,
118 "slot": 0,
119 "principal_id": "0x0000000000000001",
120 "resource_type": "0x00000001",
121 "allowed_ops": "0xFFFFFFFF",
122 "bound_base": "0x40208000",
123 "bound_size": "0x07DF8000",
124 "revocation_state": 1,
125 "attenuation_depth": 0,
126 "atlas_provenance_digest": "f7802501b410a0c19eff7b8fca8865c9ba9c96bfa4f8065ca8f508b67748b9a5"
127 },
128 "boot_state_layout": {
129 "base": "0x40205800",
130 "size_bytes": 2048,
131 "descriptor_copy": {
132 "offset": "0x000",
133 "size_bytes": 64,
134 "note": "validated 64-byte descriptor copied from 0x401FE000; PHYSICS never dereferences the Atlas scratch pointer afterwards"
135 },
136 "entry_record": {
137 "offset": "0x040",
138 "fields": {
139 "current_el": "0x040 (u64, CurrentEL & 0xC)"
140 }
141 },
142 "trap_frame": {
143 "offset": "0x080",
144 "address": "0x40205880",
145 "size_bytes": 320,
146 "fields": {
147 "x0_x30": "0x000..0x0F0 (31 x u64)",
148 "sp": "0x0F8",
149 "vector_slot": "0x100",
150 "current_el": "0x108",
151 "esr_el1": "0x110",
152 "elr_el1": "0x118",
153 "spsr_el1": "0x120",
154 "far_el1": "0x128",
155 "far_valid": "0x130",
156 "magic": "0x138 (0x314D524650415254 'TRAPFRM1', written last)"
157 }
158 },
159 "seam2_test_record": {
160 "offset": "0x200",
161 "note": "written only by Seam 2 test images, never by canonical physics.bin"
162 }
163 },
164 "static_data_layout": {
165 "base": "0x40207000",
166 "size_bytes": 4096,
167 "fields": {
168 "dram_end": "0x00",
169 "total_frames": "0x08",
170 "next_free_cursor": "0x10",
171 "reserved_zero": "0x18",
172 "bitmap": "0x20 (ceil(total_frames/8) bytes = 4031)"
173 },
174 "total_frames": 32248,
175 "allocation_failure": "0 (FRAME_EXHAUSTED; never a valid frame)"
176 }
177}