#CeanOS

1 messages · Page 1 of 1 (latest)

somber lantern
#

I started writing a kernel a few days ago, this is what im up to

dense sequoia
somber lantern
#

bruh

dense sequoia
somber lantern
#

i dont think i would name it like that

dense sequoia
somber lantern
#

i also need those ```
paging
malloc
filesystem
processes
lot of drivers

dense sequoia
#

pretty cool nonetheless

#

at least you are up to something, I have been truing to get time to work on mine

somber lantern
#

im not anymore

#

for the last 2 days ive been struggling to get paging

#

and file systems

dense sequoia
somber lantern
#

no

#

lol

#

i use grub

#

it looks like everyone is using limine on this server

somber lantern
#

how are all of those "easy" ? :

gentle phoenix
#

They are

somber lantern
#

well i cant set them up

fickle hemlock
#

are u going to make an actual os or is this going to be an in kernel funny shell project

#

__DATE__?

#

u dont need this, <stdint.h> is available in freestanding gcc

somber lantern
somber lantern
fickle hemlock
#

don't upload object files to github

#

this is not what version control is for

somber lantern
#

ik i forgot to add .o files to .gitignore

fickle hemlock
#

yeah

#

same goes for your iso

somber lantern
#

k il add them

fickle hemlock
#

this is ub

somber lantern
#

what should i replace it with

#

it was for (;;) before that

fickle hemlock
#

well dont burn the cpu, add a hlt there

somber lantern
#

k

fickle hemlock
#

asm volatile("hlt");

somber lantern
#

ye ik

#

i have a function for it

fickle hemlock
#

ye

#
    outb(0x3D4, 0x0A);              //disable text cursor
    outb(0x3D5, 0x20);              //disable text cursor

Would help readibility to not use magic numbers

#

if u add proper macros for the respective bit fields and stuff you will no longer need these comments

somber lantern
#

oh yeah

#

well

#

i did hlt

#

and it isnt working

#

great

fickle hemlock
#

don't do relative includes like ../util.h, instead make the root of the project an include directory, then u can do <util.h>

somber lantern
#

thanks for the tips

#

what should i define 0x3D4 and 0x3D5 as?

fickle hemlock
#

well what are those ports

somber lantern
#

i dont know exactly

#

but they disable the cursor

#

something with vga tho

somber lantern
#

thats what i was reading rn

fickle hemlock
#

alternatively look at linux source

somber lantern
#

il do #define VGA_CRT_IC how he did it then

fickle hemlock
#

u mean Jeff Garzik? yeah

#

anyways good luck with the kernel

somber lantern
#

thank you

fickle hemlock
#

hope u dont lose motivation becaues its easy once u get into difficult stuff

somber lantern
#

i can imagine that

somber lantern
somber lantern
#

got general protection faulted by my own os lol:

#

tried to implement a function to exit to grub

#

well at least my error handlers work

chilly flame
#

you need freestanding to write an os

somber lantern
#

i didnt use it and its working

#

those is are my C flags: ```CFLAGS = -m32 -fno-stack-protector -fno-builtin

west bridge
somber lantern
#

i can do make and it starts and i dont get any linker errors

#

if i would get errors i would do -freestanding

royal coyote
somber lantern
#

lol

dense sequoia
#

lol

west bridge
#

Well you probably messed up the toolchain then

west bridge
#

I sent that hours ago

chilly flame
somber lantern
#

i cant believe it but i got paging