aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / svc / slot_service_pi5.c
| 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* slot_service_pi5.c -- the slot service of the Pi resident-lifecycle qualification image (CK_PI5_LIFECYCLE). |
| 18 | * The Pi card has no SLOTLDR.EFI image slots (P11 is the NVMe/GB10 layout), so there is nothing to promote, |
| 19 | * abandon or update: the lifecycle's four slot hooks (svc/slot_service.h) are present and say so. The real |
| 20 | * svc/slot_service.c needs the NVMe slot and inbox disks and is not linked. Freestanding. */ |
| 21 | #include "ck.h" |
| 22 | #include "slot_service.h" |
| 23 | |
| 24 | #ifndef CK_PI5_LIFECYCLE |
| 25 | #error "slot_service_pi5.c is only part of the CK_PI5_LIFECYCLE qualification image" |
| 26 | #endif |
| 27 | |
| 28 | void ck_slot_service_start(int healthy) |
| 29 | { |
| 30 | (void)healthy; |
| 31 | ck_puts("slot: no image slots on the Pi qualification image (no SLOTLDR.EFI): slot service idle, nothing written\n"); |
| 32 | } |
| 33 | |
| 34 | void ck_slot_service_health(int healthy) |
| 35 | { |
| 36 | (void)healthy; |
| 37 | } |
| 38 | |
| 39 | void ck_slot_service_stop(void) {} |
| 40 | |
| 41 | void ck_slot_service_update(const char *arg, size_t len) |
| 42 | { |
| 43 | (void)arg; |
| 44 | (void)len; |
| 45 | ck_puts("lifecycle: update REFUSED reason=\"no image slots on the Pi qualification image\"\n"); |
| 46 | } |