-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aba8f2
commit 4bbee7a
Showing
19 changed files
with
416 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
// --- SECTIONINFO AUTOGENERATED BY /home/axel/Documents/programmation/osdev/zerOS/scripts/gensectioninfo.py, START --- | ||
#ifndef __ZEROS_SECTIONINFO_H__ | ||
#define __ZEROS_SECTIONINFO_H__ | ||
#include <stddef.h> | ||
#include <misc/symbol.h> | ||
|
||
// --- SECTIONINFO START: text --- | ||
extern const symbol zerOS_text_start; | ||
extern const symbol zerOS_text_end; | ||
static const size_t zerOS_text_size = (size_t)((uintptr_t)(const void*)zerOS_text_end - (uintptr_t)(const void*)zerOS_text_start); | ||
// --- SECTIONINFO END: text --- | ||
|
||
// --- SECTIONINFO START: bootcode --- | ||
extern const symbol zerOS_bootcode_start; | ||
extern const symbol zerOS_bootcode_end; | ||
static const size_t zerOS_bootcode_size = (size_t)((uintptr_t)(const void*)zerOS_bootcode_end - (uintptr_t)(const void*)zerOS_bootcode_start); | ||
// --- SECTIONINFO END: bootcode --- | ||
|
||
// --- SECTIONINFO START: rodata --- | ||
extern const symbol zerOS_rodata_start; | ||
extern const symbol zerOS_rodata_end; | ||
static const size_t zerOS_rodata_size = (size_t)((uintptr_t)(const void*)zerOS_rodata_end - (uintptr_t)(const void*)zerOS_rodata_start); | ||
// --- SECTIONINFO END: rodata --- | ||
|
||
// --- SECTIONINFO START: data --- | ||
extern const symbol zerOS_data_start; | ||
extern const symbol zerOS_data_end; | ||
static const size_t zerOS_data_size = (size_t)((uintptr_t)(const void*)zerOS_data_end - (uintptr_t)(const void*)zerOS_data_start); | ||
// --- SECTIONINFO END: data --- | ||
|
||
// --- SECTIONINFO START: bss --- | ||
extern const symbol zerOS_bss_start; | ||
extern const symbol zerOS_bss_end; | ||
static const size_t zerOS_bss_size = (size_t)((uintptr_t)(const void*)zerOS_bss_end - (uintptr_t)(const void*)zerOS_bss_start); | ||
// --- SECTIONINFO END: bss --- | ||
#endif | ||
|
||
// --- SECTIONINFO AUTOGENERATED BY /home/axel/Documents/programmation/osdev/zerOS/scripts/gensectioninfo.py, END --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#ifndef zerOS_KLIBC_STDLIB_H_INCLUDED | ||
#define zerOS_KLIBC_STDLIB_H_INCLUDED | ||
|
||
#include <stddef.h> | ||
|
||
void* malloc(size_t); | ||
void free(void*); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,6 @@ | |
*/ | ||
#define SYMBOL_ALIGNED_TO(align) [[__gnu__::__aligned__(align)]] | ||
|
||
typedef unsigned char symbol[]; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef zerOS_MISC_UNITS_H_INCLUDED | ||
#define zerOS_MISC_UNITS_H_INCLUDED | ||
|
||
#include <stdint.h> | ||
|
||
#undef TiB | ||
#define TiB (UINT64_C(1024) * UINT64_C(1024) * UINT64_C(1024) * UINT64_C(1024)) | ||
|
||
#undef GiB | ||
#define GiB (UINT64_C(1024) * UINT64_C(1024) * UINT64_C(1024)) | ||
|
||
#undef MiB | ||
#define MiB (UINT64_C(1024) * UINT64_C(1024)) | ||
|
||
#undef KiB | ||
#define KiB (UINT64_C(1024)) | ||
|
||
#undef TB | ||
#define TB (UINT64_C(1000) * UINT64_C(1000) * UINT64_C(1000) * UINT64_C(1000)) | ||
|
||
#undef GB | ||
#define GB (UINT64_C(1000) * UINT64_C(1000) * UINT64_C(1000)) | ||
|
||
#undef MB | ||
#define MB (UINT64_C(1000) * UINT64_C(1000)) | ||
|
||
#undef KB | ||
#define KB (UINT64_C(1000)) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef zerOS_STDLIB_H_INCLUDED | ||
#define zerOS_STDLIB_H_INCLUDED | ||
|
||
#undef _GOT_REAL_STDLIB_H_ | ||
|
||
#if defined(__has_include_next) | ||
#if __has_include_next(<stdlib.h>) | ||
#include_next <stdlib.h> | ||
#define _GOT_REAL_STDLIB_H_ | ||
#endif | ||
#endif | ||
|
||
#ifndef _GOT_REAL_STDLIB_H_ | ||
#include <klibc/stdlib.h> | ||
#else | ||
#undef _GOT_REAL_STDLIB_H_ | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.