mirror of https://gitlab.com/nakst/essence
add license header to source files
This commit is contained in:
parent
eecaf24dc8
commit
1eb2dfe549
|
@ -1,5 +1,7 @@
|
|||
# Contributing Guidelines
|
||||
|
||||
*This project is constantly evolving, and as such, this file may be out of date.*
|
||||
|
||||
## Map
|
||||
|
||||
- `apps/` Builtin applications.
|
||||
|
|
18
LICENSE.md
18
LICENSE.md
|
@ -21,14 +21,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
SOFTWARE.
|
||||
|
||||
This project also include the work of other projects.
|
||||
Their licenses may be found in the following files:
|
||||
- `util/nanosvg.h`
|
||||
- `util/hsluv.h`
|
||||
- `shared/stb_image.h`, `shared/stb_sprintf.h`, `shared/stb_ds.h` and `util/stb_truetype.h`
|
||||
- `res/Fonts/Hack License.txt`, `res/Fonts/Inter License.txt`
|
||||
- `res/Icons/elementary Icons License.txt`
|
||||
- `res/Sample Images/Licenses.txt`
|
||||
- `res/Keyboard Layouts/License.txt`
|
||||
- Ported applications have their licenses in their respective folders in `ports/`.
|
||||
All trademarks are registered trademarks of their respective owners.
|
||||
They licenses may be found in the following files:
|
||||
- util/nanosvg.h
|
||||
- util/hsluv.h
|
||||
- shared/stb_image.h, shared/stb_sprintf.h, shared/stb_ds.h and util/stb_truetype.h
|
||||
- res/Fonts/Hack License.txt, res/Fonts/Inter License.txt
|
||||
- res/Icons/elementary Icons License.txt
|
||||
- res/Sample Images/Licenses.txt
|
||||
- res/Keyboard Layouts/License.txt
|
||||
- Ported applications have their licenses in their respective folders.
|
||||
Please tell me if I've forgotten something!
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <essence.h>
|
||||
#include <shared/strings.cpp>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
void CommandRename(Instance *instance, EsElement *, EsCommand *) {
|
||||
// TODO Undo.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define NAMESPACE_HANDLER_FILE_SYSTEM (1)
|
||||
#define NAMESPACE_HANDLER_DRIVES_PAGE (2)
|
||||
#define NAMESPACE_HANDLER_ROOT (3) // Acts as a container handler where needed.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_INSTANCE_TYPE Instance
|
||||
#include <essence.h>
|
||||
#include <shared/strings.cpp>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
struct String {
|
||||
char *text;
|
||||
size_t bytes, allocated;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
struct FileType {
|
||||
char *name;
|
||||
size_t nameBytes;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Custom columns.
|
||||
|
||||
void InstanceFolderPathChanged(Instance *instance, bool fromLoadFolder) {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_INSTANCE_TYPE Instance
|
||||
#include <essence.h>
|
||||
#include <shared/array.cpp>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Saving.
|
||||
// TODO Don't use an EsPaintTarget for the bitmap?
|
||||
// TODO Show brush preview.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define INSTALLER
|
||||
|
||||
#define ES_CRT_WITHOUT_PREFIX
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Don't use EsTextbox for the output..
|
||||
// TODO Put the connection settings in a Panel.Popup.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_INSTANCE_TYPE Instance
|
||||
#include <essence.h>
|
||||
#include <shared/strings.cpp>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <essence.h>
|
||||
#include <shared/strings.cpp>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_INSTANCE_TYPE Instance
|
||||
#include <essence.h>
|
||||
#include <shared/array.cpp>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <essence.h>
|
||||
#include <shared/strings.cpp>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_INSTANCE_TYPE Instance
|
||||
#include <essence.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[section .text]
|
||||
|
||||
[global _APISyscall]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Support for systems without MMX/SSE.
|
||||
// TODO Support for systems without an APIC.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 32]
|
||||
|
||||
[global ProcessorReset]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[section .text]
|
||||
|
||||
[global _APISyscall]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
struct MMArchVAS {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 64]
|
||||
|
||||
[global ArchSwitchContext]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <arch/x86_pc.h>
|
||||
|
||||
extern "C" uint64_t ProcessorReadCR3();
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef ARCH_X86_PC_HEADER
|
||||
#define ARCH_X86_PC_HEADER
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 16]
|
||||
[org 0x7C00]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
%macro FilesystemInitialise 0
|
||||
%define superblock 0x8000
|
||||
%define kernel_file_entry 0x8800
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 16]
|
||||
[org 0x1000]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 16]
|
||||
[org 0x600]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 16]
|
||||
[org 0x600]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
#define ENTRIES_PER_PAGE_TABLE (512)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
[bits 64]
|
||||
[org 0x180000]
|
||||
[section .text]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
; This file is part of the Essence operating system.
|
||||
; It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
; Written by: nakst.
|
||||
|
||||
vbe_init:
|
||||
mov ax,vesa_info >> 4
|
||||
mov es,ax
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_API
|
||||
#define ES_FORWARD(x) x
|
||||
#define ES_EXTERN_FORWARD extern "C"
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Tabs:
|
||||
// - New tab page - search; recent files.
|
||||
// - Right click menu.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Styling features:
|
||||
// - Specifying aspect ratio of element.
|
||||
// - Animation parts (list of keyframes).
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO RMB click/drag.
|
||||
// TODO Consistent int64_t/intptr_t.
|
||||
// TODO Drag and drop.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
opaque_type EsElement EsElementPublic;
|
||||
opaque_type EsPanel EsElement;
|
||||
opaque_type EsWindow EsElement;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define ES_API
|
||||
#define ES_FORWARD(x) x
|
||||
#define ES_EXTERN_FORWARD extern "C"
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// ----------------- Includes:
|
||||
|
||||
#ifndef IncludedEssenceAPIHeader
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Fix glitches.
|
||||
// TODO RAST_REPEAT_NORMAL is wrong with negative values.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
struct SettingsInstance : CommonDesktopInstance {
|
||||
EsPanel *switcher;
|
||||
EsPanel *mainPage;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
ThreadLocalStorage *GetThreadLocalStorage() {
|
||||
return (ThreadLocalStorage *) ProcessorTLSRead(tlsStorageOffset);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#if defined(TEXT_RENDERER)
|
||||
|
||||
// TODO Fallback VGA font.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define THEME_LAYER_BOX (1)
|
||||
#define THEME_LAYER_TEXT (2)
|
||||
#define THEME_LAYER_METRICS (3)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#define SIGNATURE_RSDP (0x2052545020445352)
|
||||
#define SIGNATURE_RSDT (0x54445352)
|
||||
#define SIGNATURE_XSDT (0x54445358)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// TODO Active cooling.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Warning: Not all of the OSL has been tested.
|
||||
|
||||
extern "C" {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// TODO Inserting/removing CDs.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
#include <arch/x86_pc.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// Filesystem structures and constant definitions.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Validation of all fields.
|
||||
// TODO Contiguous block reading in Scan and Enumerate.
|
||||
// TODO Make GetDataBlock use (not yet implemented) system block cache.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Validation of all fields.
|
||||
// TODO Don't load entire FAT in memory.
|
||||
// TODO Long file names.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
#define RD_REGISTER_GCAP() controller->pci->ReadBAR16(0, 0x00) // Global capabilities.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Initialise on a separate thread.
|
||||
// TODO Checksum off-loading.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Asynchronous timeout.
|
||||
// TODO Inserting/removing ATAPI devices.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Validation of all fields.
|
||||
|
||||
#include <module.h>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Validation of all fields.
|
||||
// TODO Update to the latest file subsystem changes.
|
||||
// - Set spaceUsed and spaceTotal.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// TODO Sometimes completion interrupts get missed?
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Warn on Read/WriteBAR if port IO/memory space access is disabled in the command register.
|
||||
|
||||
#include <module.h>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Scrolling.
|
||||
|
||||
#include <module.h>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
#include <arch/x86_pc.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
#include <arch/x86_pc.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
#define SETUP_FLAG_D2H (0x80)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// TODO STALL handling.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// #define TRACE_REPORTS
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <module.h>
|
||||
|
||||
// TODO Device attach and detach.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
// TODO Implement read ahead in CCSpaceAccess.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
struct DeviceAttachData {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Use a custom executable format?
|
||||
|
||||
#define MEMORY_MAPPED_EXECUTABLES
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Features:
|
||||
// - Handling errors creating files (prevent further file system operations).
|
||||
// - Limiting the size of the directory/node cache.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
#define CURSOR_SHADOW_OFFSET (1)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
#define K_IN_CORE_KERNEL
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Prevent Meltdown/Spectre exploits.
|
||||
// TODO Kernel debugger.
|
||||
// TODO Passing data to userspace - zeroing padding bits of structures.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Soft page faults.
|
||||
// TODO Paging file.
|
||||
// TODO Large pages.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Include more functions and definitions.
|
||||
// TODO Add K- prefix to more identifiers.
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Event-based API for userland.
|
||||
|
||||
// TODO Locking: In NetTCPReceive, lock on getting task so it can't be destroyed by NetConnectionDestroy.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Reject opening handles if the handle table has been destroyed!!
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
struct POSIXFile {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Review vforking interaction from the POSIX subsystem with the process termination algorithm.
|
||||
// TODO Simplify or remove asynchronous task thread semantics.
|
||||
// TODO Break up or remove dispatchSpinlock.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifdef IMPLEMENTATION
|
||||
|
||||
#ifdef DEBUG_BUILD
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Replace ES_ERROR_UNKNOWN with proper errors.
|
||||
// TODO Clean up the return values for system calls; with FATAL_ERRORs there should need to be less error codes returned.
|
||||
// TODO If a file system call fails with an error indicating the file system is corrupted, or a drive is failing, report the problem to the user.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Everything in this file is a hack just so I can debug the kernel.
|
||||
// Replace all of it!!!
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
// TODO Don't send key released messages if the focused window has changed.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
struct ArenaSlot {
|
||||
uintptr_t indexInBlock;
|
||||
ArenaSlot *nextEmpty, **previousEmpty;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef ARRAY_IMPLEMENTATION_ONLY
|
||||
|
||||
struct _ArrayHeader {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
#ifdef DEBUG_BUILD
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
struct Bitset {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
/////////////////////////////////
|
||||
// EsRectangle utility functions.
|
||||
/////////////////////////////////
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Kernel driver:
|
||||
// Extent allocation algorithm.
|
||||
// TODO Design:
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Test deleting values in hash stores with variable length keys.
|
||||
|
||||
//////////////////////////////////////////
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
// TODO Rewrite. Make faster!
|
||||
// TODO EsHeapAllocateNearby.
|
||||
// TODO Larger heap blocks.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
template <class T>
|
||||
struct LinkedList;
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
/////////////////////////////////
|
||||
// Basic utilities.
|
||||
/////////////////////////////////
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef K_SIGNATURE_BLOCK_SIZE
|
||||
#define K_SIGNATURE_BLOCK_SIZE (65536)
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
uint32_t SwapBigEndian32(uint32_t x);
|
||||
|
||||
typedef struct PNGReader {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#ifndef IMPLEMENTATION
|
||||
|
||||
struct Range {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This file is part of the Essence operating system.
|
||||
// It is released under the terms of the MIT license -- see LICENSE.md.
|
||||
// Written by: nakst.
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable" push
|
||||
|
||||
#define DEFINE_INTERFACE_STRING(name, text) static const char *interfaceString_ ## name = text;
|
||||
|
|
Loading…
Reference in New Issue