<commit_before>#include "descriptorTables.h"
#include "../stdlib/stdio.h"
#include "../stdlib/stdlib.h"
#include "irq.h"
#include "../kernel/syscalls.h"
#include "../kernel/processScheduler.h"
#include "keyboard.h"

extern void isr0xUnknown();
extern void isr0x80(void);
extern void isr0x20(void);
extern void isr0x21(void);
extern void isr0x8(void); //double fault
extern void isr0xB(void); //segment not present
extern void isr0xC(void); //stack fault
extern void isr0xD(void); //general protection fault
extern void isr0xE(void); //page fault
extern void isr0xF(void); //unknown interrupt

GDTDescriptor gdtDesc;
GDTEntry GDT[5];

IDTDescriptor idtDesc;
IDTEntry IDT[256];

int timer = 0;

void init_gdt()
{
    memset((char*)&GDT[0], 0, sizeof(GDTEntry)); //0x0

    //code 0x8
    GDT[1].limitLow = 0xFFFF;<commit_msg>Declare assembly functions as extern C<commit_after>#include "descriptorTables.h"
#include "../stdlib/stdio.h"
#include "../stdlib/stdlib.h"
#include "irq.h"
#include "../kernel/syscalls.h"
#include "../kernel/processScheduler.h"
#include "keyboard.h"

extern "C"
{

void isr0xUnknown();
void isr0x80(void);
void isr0x20(void);
void isr0x21(void);
void isr0x8(void); //double fault
void isr0xB(void); //segment not present
void isr0xC(void); //stack fault
void isr0xD(void); //general protection fault
void isr0xE(void); //page fault
void isr0xF(void); //unknown interrupt

}

GDTDescriptor gdtDesc;
GDTEntry GDT[5];

IDTDescriptor idtDesc;
IDTEntry IDT[256];

int timer = 0;

void init_gdt()
{
    memset((char*)&GDT[0], 0, sizeof(GDTEntry)); //0x0

    //code 0x8
    GDT[1].limitLow = 0xFFFF;
{'fraction_non_alphanumeric': 0.1557478368355995, 'fraction_numerical': 0.037082818294190356, 'mean_word_length': 4.7821428571428575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3928249', 'n_tokens_mistral': 647, 'n_tokens_neox': 610, 'n_words': 154}