JamesM tutorial kheap.c?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
betatest3
Posts: 2
Joined: Tue Mar 01, 2016 3:03 pm

JamesM tutorial kheap.c?

Post by betatest3 »

Hello, and first off, sorry for making my first post and ask for help. I know the JamesM code is very buggy especially the kheap code.
My problem is that when I compile the kernel, it fails with an error "kheap:11:30: error: initializer element is not constant"
The failing line is "uint32_t placement_address = (uint32_t)&end;".

I have changed the code, by replacing that "u32int" stuff with the proper types, but this error was there before I did that.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: JamesM tutorial kheap.c?

Post by Combuster »

Looks like you missed the details in the FAQ and Posting Checklist. Both tell you what you should have fixed instead.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
betatest3
Posts: 2
Joined: Tue Mar 01, 2016 3:03 pm

Re: JamesM tutorial kheap.c?

Post by betatest3 »

Disregard this posting.
I fixed the problem. I changed my cflags to include "-m32", I still need to setup a cross compiler.
Post Reply