Working on reorganizing kernel.c

This commit is contained in:
2023-12-16 09:51:02 -06:00
parent df90bd7313
commit cbc1752e73
20 changed files with 363 additions and 139 deletions

45
.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,45 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"~/.quark/include"
],
"defines": [],
"compilerPath": "/opt/cross/bin/i686-elf-gcc",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "linux-gcc-x86",
"compilerArgs": [
"-ffreestanding",
"-nostdlib"
]
},
{
"name": "i686-cross",
"includePath": [
"/home/nathan/Documents/projects/quark-os/quark-kernel/**",
"/opt/quark-os/rootfs/include/",
"${workspaceFolder}/include"
],
"defines": [],
"compilerPath": "/opt/cross/bin/i686-elf-gcc",
"cppStandard": "c++14",
"intelliSenseMode": "linux-gcc-x86",
"compilerArgs": [
"-ffreestanding ",
"-nostdlib"
],
"cStandard": "c11",
"mergeConfigurations": false,
"browse": {
"path": [
"${workspaceFolder}/**"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}

37
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,37 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/opt/quark-os/rootfs/apps/quark-kernel",
"args": [],
"stopAtEntry": true,
"stopAtConnect": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:1234",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}/*,
{
"text": "-target-select remote localhost:1234",
"ignoreFailures": false
}*/
],
"preLaunchTask": "Launch QEMU (i386)"
/*"debugServerPath": "/bin/qemu-system-i386",
"debugServerArgs": "-hda /opt/quark-os/quark.img -serial stdio -s -S",
"serverLaunchTimeout": 2000*/
}
]
}

28
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,28 @@
{
"files.exclude": {
"**/*.o": true,
"**/ar-lib": true,
"**/Makefile": true,
"**/*.in": true,
"**/stamp-h1": true,
"**/*.a": true,
"aclocal.m4": true,
"compile": true,
"config.log": true,
"config.status": true,
"configure*": true,
"depcomp": true,
"install-sh": true,
"missing": true,
"**/.deps": true,
"autom4te.cache": true,
"**/quark-kernel": true
},
"C_Cpp.default.cStandard": "c11",
"files.associations": {
"memmap.h": "c",
"pid.h": "c",
"sighandler.h": "c",
"string.h": "c"
}
}

27
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "PATH=\"$PATH:/opt/cross/bin\" make",
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Launch QEMU (i386)",
"type": "shell",
"command": "qemu-system-i386 -hda /opt/quark-os/quark.img -serial stdio -s -S",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": true
}
}
]
}