<commit_before>LOCAL_DIR := $(GET_LOCAL_DIR)

MODULE := $(LOCAL_DIR)

GLOBAL_INCLUDES += \
	$(LOCAL_DIR)/include

WITH_KERNEL_VM=1

GLOBAL_DEFINES += \
	KERNEL_ASPACE_BASE=0x00000000 \
	KERNEL_ASPACE_SIZE=0x80000000 

KERNEL_BASE ?= 0x00000000
KERNEL_LOAD_OFFSET ?= 0x200000

MODULE_SRCS += \
	$(LOCAL_DIR)/crt0.S \
	$(LOCAL_DIR)/arch.c \
	$(LOCAL_DIR)/asm.S \
	$(LOCAL_DIR)/cache.c \
	$(LOCAL_DIR)/cache-ops.S \
	$(LOCAL_DIR)/ops.S \
	$(LOCAL_DIR)/thread.c \
	$(LOCAL_DIR)/mmu.c \
	$(LOCAL_DIR)/faults.c \
	$(LOCAL_DIR)/descriptor.c 


# set the default toolchain to x86 elf and set a #define
ifndef TOOLCHAIN_PREFIX
TOOLCHAIN_PREFIX := i386-elf-
endif

# for the moment, SMP is not supported on x86
GLOBAL_DEFINES += \
	-       SMP_MAX_CPUS=1



LIBGCC := $(shell $(TOOLCHAIN_PREFIX)gcc $(CFLAGS) -print-libgcc-file-name)
#$(info LIBGCC = $(LIBGCC))

cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`"; \
	then echo "$(2)"; else echo "$(3)"; fi ;)

# disable SSP if the compiler supports it; it will break stuff
GLOBAL_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)<commit_msg>rebasing x86 paging support to master<commit_after>LOCAL_DIR := $(GET_LOCAL_DIR)

MODULE := $(LOCAL_DIR)

GLOBAL_INCLUDES += \
	$(LOCAL_DIR)/include

WITH_KERNEL_VM=1

GLOBAL_DEFINES += \
	KERNEL_ASPACE_BASE=0x00000000 \
	KERNEL_ASPACE_SIZE=0x80000000 

KERNEL_BASE ?= 0x00000000
KERNEL_LOAD_OFFSET ?= 0x200000

MODULE_SRCS += \
	$(LOCAL_DIR)/crt0.S \
	$(LOCAL_DIR)/arch.c \
	$(LOCAL_DIR)/asm.S \
	$(LOCAL_DIR)/cache.c \
	$(LOCAL_DIR)/cache-ops.S \
	$(LOCAL_DIR)/ops.S \
	$(LOCAL_DIR)/thread.c \
	$(LOCAL_DIR)/mmu.c \
	$(LOCAL_DIR)/faults.c \
	$(LOCAL_DIR)/descriptor.c 


# set the default toolchain to x86 elf and set a #define
ifndef TOOLCHAIN_PREFIX
TOOLCHAIN_PREFIX := i386-elf-
endif

# for the moment, SMP is not supported on x86
GLOBAL_DEFINES += \
	       SMP_MAX_CPUS=1



LIBGCC := $(shell $(TOOLCHAIN_PREFIX)gcc $(CFLAGS) -print-libgcc-file-name)
#$(info LIBGCC = $(LIBGCC))

cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`"; \
	then echo "$(2)"; else echo "$(3)"; fi ;)

# disable SSP if the compiler supports it; it will break stuff
GLOBAL_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
{'fraction_non_alphanumeric': 0.16526362428001773, 'fraction_numerical': 0.04519273371732388, 'mean_word_length': 4.074157303370787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1952421', 'n_tokens_mistral': 1003, 'n_tokens_neox': 898, 'n_words': 192}