<commit_before>#include <kernel.h>
#include <stdint.h>
#include <klib.h>
#include <apic.h>
#include <acpi.h>
#include <system.h>
#include <paging.h>
#include <task.h>

#define CPU_STACK_SIZE 4096

static size_t cpu_stack_top = 0xeffff0;

void ap_kernel_entry(void) {
    /* APs jump here after initialisation */

    kprint(KPRN_INFO, "SMP: Started up AP #%u", get_cpu_number());
    kprint(KPRN_INFO, "SMP: AP #%u kernel stack top: %x", get_cpu_number(), get_cpu_kernel_stack());<commit_msg>Fixed crashes by doubling kernel stack per core<commit_after>#include <kernel.h>
#include <stdint.h>
#include <klib.h>
#include <apic.h>
#include <acpi.h>
#include <system.h>
#include <paging.h>
#include <task.h>

#define CPU_STACK_SIZE 8192

static size_t cpu_stack_top = 0xeffff0;

void ap_kernel_entry(void) {
    /* APs jump here after initialisation */

    kprint(KPRN_INFO, "SMP: Started up AP #%u", get_cpu_number());
    kprint(KPRN_INFO, "SMP: AP #%u kernel stack top: %x", get_cpu_number(), get_cpu_kernel_stack());
{'fraction_non_alphanumeric': 0.14538310412573674, 'fraction_numerical': 0.011787819253438114, 'mean_word_length': 5.36875, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '481569', 'n_tokens_mistral': 416, 'n_tokens_neox': 401, 'n_words': 100}