From 74ec6b99f60c48ece7cd03a9ef77178145774c24 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 19 Mar 2025 05:27:45 +0100 Subject: ADD: A new placeholder program, 'cc' Signed-off-by: Amlal El Mahrouss --- ReadMe.md | 14 +++++++------- public/tools/cc/.keep | 0 public/tools/cc/cc.json | 12 ++++++++++++ public/tools/cc/dist/.keep | 0 public/tools/cc/src/CommandLine.cc | 15 +++++++++++++++ public/tools/ld/src/CommandLine.cc | 3 +-- 6 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 public/tools/cc/.keep create mode 100644 public/tools/cc/cc.json create mode 100644 public/tools/cc/dist/.keep create mode 100644 public/tools/cc/src/CommandLine.cc diff --git a/ReadMe.md b/ReadMe.md index 4845133d..b2388634 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,14 +1,10 @@ -# New Kernel Architecture OS (NeOS) - -## Brief: - -An OS written in C++ 20, with a System Call Interface Library, and a custom bootloader. +# NeKernel Architecture ## Requirements: -- MinGW/GCC. +- MinGW/GCC, Clang. - LibCompiler Runtime Headers and Toolchain. - Netwide Assembler. - Git. @@ -21,9 +17,13 @@ Clone repository: ```sh git clone git@github.com:devrije/kernel.git cd kernel -./debug_ata.sh # Generic ATA PIO target +./debug_ahci.sh # Generic AHCI target ``` +## Good first PRs + +- Contribute to the AHCI generic driver (PRDs are not being read) + ## Warning: You have to mount the FAT32 image in order to put the src/Root/ contents in it! (To make the emulator boot NeOS) diff --git a/public/tools/cc/.keep b/public/tools/cc/.keep new file mode 100644 index 00000000..e69de29b diff --git a/public/tools/cc/cc.json b/public/tools/cc/cc.json new file mode 100644 index 00000000..a81c1ed2 --- /dev/null +++ b/public/tools/cc/cc.json @@ -0,0 +1,12 @@ +{ + "compiler_path": "g++", + "compiler_std": "c++23", + "headers_path": ["./"], + "sources_path": ["src/CommandLine.cc"], + "output_name": "./dist/cc", + "cpp_macros": [ + "kCCVersion=0x0100", + "kCCVersionHighest=0x0100", + "kCCVersionLowest=0x0100" + ] +} diff --git a/public/tools/cc/dist/.keep b/public/tools/cc/dist/.keep new file mode 100644 index 00000000..e69de29b diff --git a/public/tools/cc/src/CommandLine.cc b/public/tools/cc/src/CommandLine.cc new file mode 100644 index 00000000..3efa5301 --- /dev/null +++ b/public/tools/cc/src/CommandLine.cc @@ -0,0 +1,15 @@ +/* + * Created on Thu Oct 17 08:00:42 CEST 2024 + * + * Copyright (c) 2024 Amlal EL Mahrouss + */ + +#include + +/// @brief This program loads a program for NeOS. + +SInt32 main(SInt32 argc, Char* argv[]) +{ + ConOut(nullptr, "LD: OpenCC or GCC for Ne needs to be installed.\rLD: This program is present as a placeholder."); + return EXIT_FAILURE; +} diff --git a/public/tools/ld/src/CommandLine.cc b/public/tools/ld/src/CommandLine.cc index 6f2fc4a8..3efa5301 100644 --- a/public/tools/ld/src/CommandLine.cc +++ b/public/tools/ld/src/CommandLine.cc @@ -10,7 +10,6 @@ SInt32 main(SInt32 argc, Char* argv[]) { - ConOut(nullptr, "LD: Either OpenCC or Aker's CC needs to be installed.\rLD: This program is present as a placeholder."); - + ConOut(nullptr, "LD: OpenCC or GCC for Ne needs to be installed.\rLD: This program is present as a placeholder."); return EXIT_FAILURE; } -- cgit v1.2.3