Cut the 0.1.8 release (native GCC/binutils port forming the Montauk SDK, revamped MTK-based Installer, anti-aliased MTK rounded-rect frames, vblank-synced double-buffered Intel GPU page flips, max windows raised to 32, and various bug fixes, including the halved ISO size from no longer nesting ramdisk.tar). Archive the 0.1.8 ISO, publish it to the website, refresh release notes and the downloads page, and open the 0.1.9 dev cycle (apiVersion 10, BuildNo reset). Co-Authored-By: Claude Opus 4.8 <[email protected]>
31 lines
794 B
C++
31 lines
794 B
C++
/*
|
|
* Info.hpp
|
|
* SYS_GETINFO syscall
|
|
* Copyright (c) 2026 Daniel Hammer
|
|
*/
|
|
|
|
#pragma once
|
|
#include <Sched/Scheduler.hpp>
|
|
|
|
#include "BuildNo.hpp"
|
|
#include "Syscall.hpp"
|
|
|
|
namespace montauk::abi {
|
|
|
|
static void Sys_GetInfo(SysInfo* outInfo) {
|
|
if (outInfo == nullptr) return;
|
|
|
|
// Copy strings into fixed-size arrays (user-accessible)
|
|
const char* name = "MontaukOS";
|
|
const char* ver = "0.1.9";
|
|
for (int i = 0; name[i]; i++) outInfo->osName[i] = name[i];
|
|
outInfo->osName[9] = '\0';
|
|
for (int i = 0; ver[i]; i++) outInfo->osVersion[i] = ver[i];
|
|
outInfo->osVersion[5] = '\0';
|
|
|
|
outInfo->apiVersion = 10;
|
|
outInfo->maxProcesses = Sched::MaxProcesses;
|
|
outInfo->buildNumber = MONTAUK_BUILD_NUMBER;
|
|
}
|
|
};
|