Relicense to MIT

This commit is contained in:
August 2025-10-09 13:12:54 -04:00
parent 6f65bbea34
commit 913353ed03
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2
37 changed files with 42 additions and 50 deletions

View File

@ -2,6 +2,7 @@
name = "gila"
version = "0.3.1"
edition = "2024"
license = "MIT"
[dependencies]
acid_alloc = { version = "0.1.0", features = ["alloc"] }

19
LICENSE
View File

@ -1,18 +1,9 @@
# License
# GNU Public License v3
Copyright (c) 2025 shibedrill
Gila - a microkernel OS written in Rust, and inspired by Xinu.
Copyright (C) 2025 shibedrill
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -56,7 +56,7 @@ Information on the build system, repo structure, features, configuration options
## Licensing
Licensed under the GNU Public License v3. See [LICENSE](LICENSE) for details.
Licensed under the MIT License. See [LICENSE](LICENSE) for details.
## Credits

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use core::arch::asm;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod asm;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use core::arch::asm;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod asm;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#[cfg(not(any(
target_arch = "x86_64",

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use core::arch::asm;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod asm;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub fn nop() {
::x86_64::instructions::nop();

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use core::arch::asm;
use core::ptr::addr_of_mut;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::LogLevel;
use crate::{LOGGER, format, log_trace};

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod asm;
pub mod gdt;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#![allow(dead_code)]

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod modules;
pub mod params;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::format;
use crate::memory::alloc::string::String;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::boot::modules::FILE_REQUEST;
use crate::memory::alloc;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use enumflags2::{BitFlags, bitflags};
use lazy_static::lazy_static;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
// TODO: Implement per-arch memory handlers for ACPI memory map regions

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#[cfg(feature = "acpi")]
mod acpi;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::memory::alloc::string::String;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::constants::LOG_DEFAULT_LEVEL;
use crate::format;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#![no_std]
#![no_main]

View File

@ -1,9 +1,9 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::boot::modules::MODULE_RESPONSE;
use crate::boot::params::EXECUTABLE_FILE_RESPONSE;
use crate::{LOGGER, LogLevel, format, log_info, log_trace};
use crate::{LOGGER, LogLevel, format};
use alloc::string::String;
use free_list::{AllocError, FreeList, PAGE_SIZE, PageRange};

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use core::panic::*;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
use crate::memory::alloc;
use alloc::string::String;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#![allow(dead_code)]

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
/// Critical section: Mark a section of code as critical.
/// Interrupts will be disabled until the section completes.

View File

@ -1,2 +1,2 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT

View File

@ -1,2 +1,2 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#[cfg(target_arch = "x86_64")]
pub mod x86_64;

View File

@ -1,2 +1,2 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT

View File

@ -1,4 +1,4 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pub mod syscall_impl;

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#![allow(dead_code, unused_variables)]

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
#![no_std]
#![allow(unused_imports)]

View File

@ -1,5 +1,5 @@
// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
// Every architecture MUST implement this as part of the ABI.
// Additional registers can be implemented with architecture-specific traits.