feat: add support for aarch64 timer/interrupts, port MontaukOS userspace

This commit is contained in:
daniel committed 2026-10-25 08:27:09 +01:00
1 parent 8b6379fb7e
commit 8c09ccef66
101 files changed
+1720 -629

No files matched your search

+11 -13
View File
@@ -4,12 +4,12 @@
MAKEFLAGS += -rR
.SUFFIXES:
TOOLCHAIN_PREFIX := $(shell cd ../../.. && pwd)/toolchain/local/bin/x86_64-montauk-
include ../../mk/arch.mk
ifeq ($(wildcard $(TOOLCHAIN_PREFIX)gcc),)
CC = $(error x86_64-montauk toolchain not found. Run ./toolchain/build-montauk-toolchain.sh first)
CXX = $(error x86_64-montauk toolchain not found. Run ./toolchain/build-montauk-toolchain.sh first)
LD = $(error x86_64-montauk toolchain not found. Run ./toolchain/build-montauk-toolchain.sh first)
STRIP = $(error x86_64-montauk toolchain not found. Run ./toolchain/build-montauk-toolchain.sh first)
CC = $(error $(TOOLCHAIN_MISSING))
CXX = $(error $(TOOLCHAIN_MISSING))
LD = $(error $(TOOLCHAIN_MISSING))
STRIP = $(error $(TOOLCHAIN_MISSING))
else
CC := $(TOOLCHAIN_PREFIX)gcc
CXX := $(TOOLCHAIN_PREFIX)g++
@@ -18,9 +18,9 @@ else
endif
PROG_INC := ../../include
LIBOUTDIR := ../../bin/os
OBJDIR := obj
LEGACY_APPDIR := ../../bin/apps/dialogs
LIBOUTDIR := ../../bin$(ARCH_SUFFIX)/os
OBJDIR := obj$(ARCH_SUFFIX)
LEGACY_APPDIR := ../../bin$(ARCH_SUFFIX)/apps/dialogs
LIBC_SRC := ../../lib/libc/libc.c
GCC_INCLUDE := $(shell $(CC) -print-file-name=include)
@@ -40,8 +40,7 @@ CXXFLAGS := \
-fno-exceptions \
-ffunction-sections \
-fdata-sections \
-msse \
-msse2 \
$(ARCH_FP_FLAGS) \
-MMD -MP \
-DGUI_DIALOGS_LIBRARY_BUILD \
-I $(PROG_INC) \
@@ -55,7 +54,7 @@ LDFLAGS := \
--hash-style=sysv \
-u dialogs_run_request \
-u dialogs_message_box \
-m elf_x86_64
-m $(ARCH_LD_EMULATION)
LIBC_CFLAGS := \
-std=gnu11 \
@@ -69,8 +68,7 @@ LIBC_CFLAGS := \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections \
-msse \
-msse2 \
$(ARCH_FP_FLAGS) \
-isystem $(PROG_INC)/libc \
-isystem $(GCC_INCLUDE)