MOS Source Code
Loading...
Searching...
No Matches
autoconf.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MOS_ADDR_USER_STACK   0x5000000000
 
#define MOS_ADDR_USER_MMAP   0x1000000000
 
#define MOS_PLATFORM_DEBUG_ALL   1
 
#define MOS_GENERIC_PLATFORM_DEBUG_ALL   1
 
#define MOS_DEBUG_limine   1
 
#define MOS_PAGE_SIZE   4096
 
#define MOS_PLATFORM_DEBUG_ALL_x86_64   1
 
#define MOS_DEBUG_x86_cpu   1
 
#define MOS_DEBUG_x86_lapic   1
 
#define MOS_DEBUG_x86_ioapic   1
 
#define MOS_DEBUG_x86_startup   1
 
#define MOS_DEBUG_x86_acpi   1
 
#define MOS_DEFAULT_INIT_PATH   "/initrd/programs/bootstrapper"
 
#define MOS_EXTRA_CMDLINE   ""
 
#define MOS_SMP   1
 
#define MOS_MM_DETAILED_UNHANDLED_FAULT   1
 
#define MOS_MM_DETAILED_MMAPS_UNHANDLED_FAULT   -1
 
#define MOS_DYNAMIC_DEBUG   1
 
#define MOS_PRINTK_BUFFER_SIZE   1024
 
#define MOS_INODE_CACHE_HASHMAP_SIZE   256
 
#define MOS_ELF_INTERPRETER_BASE_OFFSET   0x100000
 
#define MOS_INITRD_BASE   0x300000000
 
#define MOS_MAX_CPU_COUNT   8
 
#define MOS_MAX_CMDLINE_COUNT   64
 
#define MOS_MAX_MEMREGIONS   64
 
#define MOS_PROCESS_MAX_OPEN_FILES   64
 
#define MOS_PATH_MAX_LENGTH   256
 
#define MOS_STACK_PAGES_KERNEL   8
 
#define MOS_STACK_PAGES_USER   32
 
#define MOS_UBSAN   -1
 
#define MOS_PROFILING   -1
 
#define MOS_PRINTK_HAS_SOME_PREFIX   1
 
#define MOS_PRINTK_WITH_TIMESTAMP   -1
 
#define MOS_PRINTK_WITH_DATETIME   -1
 
#define MOS_PRINTK_WITH_CPU_ID   -1
 
#define MOS_PRINTK_WITH_FILENAME   1
 
#define MOS_PRINTK_WITH_THREAD_ID   -1
 
#define MOS_DEBUG_ALL   1
 
#define MOS_DEBUG_cpio   1
 
#define MOS_DEBUG_dcache   1
 
#define MOS_DEBUG_dcache_ref   1
 
#define MOS_DEBUG_dma   1
 
#define MOS_DEBUG_elf   1
 
#define MOS_DEBUG_futex   1
 
#define MOS_DEBUG_io   1
 
#define MOS_DEBUG_ipc   1
 
#define MOS_DEBUG_ipi   1
 
#define MOS_DEBUG_naive_sched   1
 
#define MOS_DEBUG_panic   1
 
#define MOS_DEBUG_pagefault   1
 
#define MOS_DEBUG_pipe   1
 
#define MOS_DEBUG_pmm   1
 
#define MOS_DEBUG_pmm_buddy   1
 
#define MOS_DEBUG_process   1
 
#define MOS_DEBUG_scheduler   1
 
#define MOS_DEBUG_setup   1
 
#define MOS_DEBUG_signal   1
 
#define MOS_DEBUG_slab   1
 
#define MOS_DEBUG_spinlock   1
 
#define MOS_DEBUG_syscall   1
 
#define MOS_DEBUG_sysfs   1
 
#define MOS_DEBUG_thread   1
 
#define MOS_DEBUG_tmpfs   1
 
#define MOS_DEBUG_userfs   1
 
#define MOS_DEBUG_vfs   1
 
#define MOS_DEBUG_vmm   1
 
#define MOS_TESTS   1
 
#define MOS_TEST_ALL   1
 
#define MOS_TEST_printf   1
 
#define MOS_TEST_linked_list   1
 
#define MOS_TEST_kmalloc   1
 
#define MOS_TEST_cmdline_parser   1
 
#define MOS_TEST_hashmap   1
 
#define MOS_TEST_downwards_stack   1
 
#define MOS_TEST_memops   1
 
#define MOS_TEST_ring_buffer   1
 
#define MOS_TEST_vfs   1
 
#define MOS_MLIBC_HEADER_DIR   "/opt/x86_64-mos/include/"
 
#define MOS_RUST_TARGET   "x86_64-unknown-mos"
 

Macro Definition Documentation

◆ MOS_ADDR_USER_STACK

#define MOS_ADDR_USER_STACK   0x5000000000

Definition at line 1 of file autoconf.h.

Referenced by process_do_execveat(), and thread_new().

◆ MOS_ADDR_USER_MMAP

#define MOS_ADDR_USER_MMAP   0x1000000000

Definition at line 2 of file autoconf.h.

Referenced by dmabuf_allocate(), and mmap_verify_arguments().

◆ MOS_PLATFORM_DEBUG_ALL

#define MOS_PLATFORM_DEBUG_ALL   1

Definition at line 3 of file autoconf.h.

◆ MOS_GENERIC_PLATFORM_DEBUG_ALL

#define MOS_GENERIC_PLATFORM_DEBUG_ALL   1

Definition at line 4 of file autoconf.h.

◆ MOS_DEBUG_limine

#define MOS_DEBUG_limine   1

Definition at line 5 of file autoconf.h.

◆ MOS_PAGE_SIZE

#define MOS_PAGE_SIZE   4096

Definition at line 6 of file autoconf.h.

Referenced by acpi_sysfs_mmap(), add_to_memmap(), cpio_fill_cache(), dmabuf_alloc(), dmabuf_do_allocate(), dmabuf_share(), dmabuf_share(), dmabuf_unshare(), elf_do_fill_process(), elf_map_segment(), initrd_read(), ipc_connect_to_server(), limine_entry(), mm_copy_page(), mm_destroy_context(), mm_do_get_pfn(), mm_do_unmap(), mm_get_free_page(), mm_get_free_vaddr_locked(), mm_get_is_mapped_locked(), mm_get_phys_addr(), mm_handle_fault(), mm_sysfs_init(), mmap_anonymous(), mmap_file(), mmap_file(), mmap_verify_arguments(), mmstat_sysfs_stat(), mos_start_kernel(), MOS_STATIC_ASSERT(), munmap(), pagetable_do_dump(), pagetable_iter_next(), pagetable_iterator_start_current_range(), pipe_close_one_end(), pipe_create(), platform_startup_setup_kernel_mm(), platform_switch_mm(), pml1_destroy_range(), pml1_traverse(), pml2_destroy_range(), pml2_traverse(), pmm_find_reserved_region(), pmm_init(), process_do_execveat(), process_do_fork(), process_sysfs_vmap_stat(), register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), simple_page_write_begin(), slab_alloc(), slab_allocate_mem(), slab_free(), slab_init_one(), slab_realloc(), sys_mem_mmap(), sysfs_expand_buffer(), sysfs_printf(), sysfs_put_data(), thread_new(), userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), vfs_fault_handler(), vfs_fsync(), vfs_open_ipc(), vfs_read_pagecache(), vfs_write_pagecache(), vm_protect(), vmap_obtain(), vmap_split(), vsnprintf_do_pointer_kernel(), x86_dump_stack_at(), x86_setup_direct_map(), and zero_page().

◆ MOS_PLATFORM_DEBUG_ALL_x86_64

#define MOS_PLATFORM_DEBUG_ALL_x86_64   1

Definition at line 7 of file autoconf.h.

◆ MOS_DEBUG_x86_cpu

#define MOS_DEBUG_x86_cpu   1

Definition at line 8 of file autoconf.h.

◆ MOS_DEBUG_x86_lapic

#define MOS_DEBUG_x86_lapic   1

Definition at line 9 of file autoconf.h.

◆ MOS_DEBUG_x86_ioapic

#define MOS_DEBUG_x86_ioapic   1

Definition at line 10 of file autoconf.h.

◆ MOS_DEBUG_x86_startup

#define MOS_DEBUG_x86_startup   1

Definition at line 11 of file autoconf.h.

◆ MOS_DEBUG_x86_acpi

#define MOS_DEBUG_x86_acpi   1

Definition at line 12 of file autoconf.h.

◆ MOS_DEFAULT_INIT_PATH

#define MOS_DEFAULT_INIT_PATH   "/initrd/programs/bootstrapper"

Definition at line 13 of file autoconf.h.

Referenced by mos_start_kernel().

◆ MOS_EXTRA_CMDLINE

#define MOS_EXTRA_CMDLINE   ""

Definition at line 14 of file autoconf.h.

Referenced by mos_cmdline_init().

◆ MOS_SMP

#define MOS_SMP   1

Definition at line 15 of file autoconf.h.

◆ MOS_MM_DETAILED_UNHANDLED_FAULT

#define MOS_MM_DETAILED_UNHANDLED_FAULT   1

Definition at line 16 of file autoconf.h.

◆ MOS_MM_DETAILED_MMAPS_UNHANDLED_FAULT

#define MOS_MM_DETAILED_MMAPS_UNHANDLED_FAULT   -1

Definition at line 17 of file autoconf.h.

◆ MOS_DYNAMIC_DEBUG

#define MOS_DYNAMIC_DEBUG   1

Definition at line 18 of file autoconf.h.

◆ MOS_PRINTK_BUFFER_SIZE

#define MOS_PRINTK_BUFFER_SIZE   1024

Definition at line 19 of file autoconf.h.

Referenced by lvprintk(), mos_cmdline_init(), mos_kwarn(), and test_engine_warning_handler().

◆ MOS_INODE_CACHE_HASHMAP_SIZE

#define MOS_INODE_CACHE_HASHMAP_SIZE   256

Definition at line 20 of file autoconf.h.

Referenced by inode_init().

◆ MOS_ELF_INTERPRETER_BASE_OFFSET

#define MOS_ELF_INTERPRETER_BASE_OFFSET   0x100000

Definition at line 21 of file autoconf.h.

Referenced by elf_do_fill_process(), and elf_map_interpreter().

◆ MOS_INITRD_BASE

#define MOS_INITRD_BASE   0x300000000

Definition at line 22 of file autoconf.h.

Referenced by mos_start_kernel().

◆ MOS_MAX_CPU_COUNT

#define MOS_MAX_CPU_COUNT   8

Definition at line 23 of file autoconf.h.

Referenced by madt_parse_table().

◆ MOS_MAX_CMDLINE_COUNT

#define MOS_MAX_CMDLINE_COUNT   64

Definition at line 24 of file autoconf.h.

Referenced by mos_cmdline_init().

◆ MOS_MAX_MEMREGIONS

#define MOS_MAX_MEMREGIONS   64

Definition at line 25 of file autoconf.h.

◆ MOS_PROCESS_MAX_OPEN_FILES

#define MOS_PROCESS_MAX_OPEN_FILES   64

◆ MOS_PATH_MAX_LENGTH

◆ MOS_STACK_PAGES_KERNEL

#define MOS_STACK_PAGES_KERNEL   8

Definition at line 28 of file autoconf.h.

Referenced by process_do_fork(), thread_destroy(), and thread_new().

◆ MOS_STACK_PAGES_USER

#define MOS_STACK_PAGES_USER   32

Definition at line 29 of file autoconf.h.

Referenced by process_do_execveat(), and thread_new().

◆ MOS_UBSAN

#define MOS_UBSAN   -1

Definition at line 30 of file autoconf.h.

◆ MOS_PROFILING

#define MOS_PROFILING   -1

Definition at line 31 of file autoconf.h.

◆ MOS_PRINTK_HAS_SOME_PREFIX

#define MOS_PRINTK_HAS_SOME_PREFIX   1

Definition at line 32 of file autoconf.h.

◆ MOS_PRINTK_WITH_TIMESTAMP

#define MOS_PRINTK_WITH_TIMESTAMP   -1

Definition at line 33 of file autoconf.h.

◆ MOS_PRINTK_WITH_DATETIME

#define MOS_PRINTK_WITH_DATETIME   -1

Definition at line 34 of file autoconf.h.

◆ MOS_PRINTK_WITH_CPU_ID

#define MOS_PRINTK_WITH_CPU_ID   -1

Definition at line 35 of file autoconf.h.

◆ MOS_PRINTK_WITH_FILENAME

#define MOS_PRINTK_WITH_FILENAME   1

Definition at line 36 of file autoconf.h.

◆ MOS_PRINTK_WITH_THREAD_ID

#define MOS_PRINTK_WITH_THREAD_ID   -1

Definition at line 37 of file autoconf.h.

◆ MOS_DEBUG_ALL

#define MOS_DEBUG_ALL   1

Definition at line 38 of file autoconf.h.

◆ MOS_DEBUG_cpio

#define MOS_DEBUG_cpio   1

Definition at line 39 of file autoconf.h.

◆ MOS_DEBUG_dcache

#define MOS_DEBUG_dcache   1

Definition at line 40 of file autoconf.h.

◆ MOS_DEBUG_dcache_ref

#define MOS_DEBUG_dcache_ref   1

Definition at line 41 of file autoconf.h.

◆ MOS_DEBUG_dma

#define MOS_DEBUG_dma   1

Definition at line 42 of file autoconf.h.

◆ MOS_DEBUG_elf

#define MOS_DEBUG_elf   1

Definition at line 43 of file autoconf.h.

◆ MOS_DEBUG_futex

#define MOS_DEBUG_futex   1

Definition at line 44 of file autoconf.h.

◆ MOS_DEBUG_io

#define MOS_DEBUG_io   1

Definition at line 45 of file autoconf.h.

◆ MOS_DEBUG_ipc

#define MOS_DEBUG_ipc   1

Definition at line 46 of file autoconf.h.

◆ MOS_DEBUG_ipi

#define MOS_DEBUG_ipi   1

Definition at line 47 of file autoconf.h.

◆ MOS_DEBUG_naive_sched

#define MOS_DEBUG_naive_sched   1

Definition at line 48 of file autoconf.h.

◆ MOS_DEBUG_panic

#define MOS_DEBUG_panic   1

Definition at line 49 of file autoconf.h.

◆ MOS_DEBUG_pagefault

#define MOS_DEBUG_pagefault   1

Definition at line 50 of file autoconf.h.

◆ MOS_DEBUG_pipe

#define MOS_DEBUG_pipe   1

Definition at line 51 of file autoconf.h.

◆ MOS_DEBUG_pmm

#define MOS_DEBUG_pmm   1

Definition at line 52 of file autoconf.h.

◆ MOS_DEBUG_pmm_buddy

#define MOS_DEBUG_pmm_buddy   1

Definition at line 53 of file autoconf.h.

◆ MOS_DEBUG_process

#define MOS_DEBUG_process   1

Definition at line 54 of file autoconf.h.

◆ MOS_DEBUG_scheduler

#define MOS_DEBUG_scheduler   1

Definition at line 55 of file autoconf.h.

◆ MOS_DEBUG_setup

#define MOS_DEBUG_setup   1

Definition at line 56 of file autoconf.h.

◆ MOS_DEBUG_signal

#define MOS_DEBUG_signal   1

Definition at line 57 of file autoconf.h.

◆ MOS_DEBUG_slab

#define MOS_DEBUG_slab   1

Definition at line 58 of file autoconf.h.

◆ MOS_DEBUG_spinlock

#define MOS_DEBUG_spinlock   1

Definition at line 59 of file autoconf.h.

◆ MOS_DEBUG_syscall

#define MOS_DEBUG_syscall   1

Definition at line 60 of file autoconf.h.

◆ MOS_DEBUG_sysfs

#define MOS_DEBUG_sysfs   1

Definition at line 61 of file autoconf.h.

◆ MOS_DEBUG_thread

#define MOS_DEBUG_thread   1

Definition at line 62 of file autoconf.h.

◆ MOS_DEBUG_tmpfs

#define MOS_DEBUG_tmpfs   1

Definition at line 63 of file autoconf.h.

◆ MOS_DEBUG_userfs

#define MOS_DEBUG_userfs   1

Definition at line 64 of file autoconf.h.

◆ MOS_DEBUG_vfs

#define MOS_DEBUG_vfs   1

Definition at line 65 of file autoconf.h.

◆ MOS_DEBUG_vmm

#define MOS_DEBUG_vmm   1

Definition at line 66 of file autoconf.h.

◆ MOS_TESTS

#define MOS_TESTS   1

Definition at line 67 of file autoconf.h.

◆ MOS_TEST_ALL

#define MOS_TEST_ALL   1

Definition at line 68 of file autoconf.h.

◆ MOS_TEST_printf

#define MOS_TEST_printf   1

Definition at line 69 of file autoconf.h.

◆ MOS_TEST_linked_list

#define MOS_TEST_linked_list   1

Definition at line 70 of file autoconf.h.

◆ MOS_TEST_kmalloc

#define MOS_TEST_kmalloc   1

Definition at line 71 of file autoconf.h.

◆ MOS_TEST_cmdline_parser

#define MOS_TEST_cmdline_parser   1

Definition at line 72 of file autoconf.h.

◆ MOS_TEST_hashmap

#define MOS_TEST_hashmap   1

Definition at line 73 of file autoconf.h.

◆ MOS_TEST_downwards_stack

#define MOS_TEST_downwards_stack   1

Definition at line 74 of file autoconf.h.

◆ MOS_TEST_memops

#define MOS_TEST_memops   1

Definition at line 75 of file autoconf.h.

◆ MOS_TEST_ring_buffer

#define MOS_TEST_ring_buffer   1

Definition at line 76 of file autoconf.h.

◆ MOS_TEST_vfs

#define MOS_TEST_vfs   1

Definition at line 77 of file autoconf.h.

◆ MOS_MLIBC_HEADER_DIR

#define MOS_MLIBC_HEADER_DIR   "/opt/x86_64-mos/include/"

Definition at line 78 of file autoconf.h.

◆ MOS_RUST_TARGET

#define MOS_RUST_TARGET   "x86_64-unknown-mos"

Definition at line 79 of file autoconf.h.