Page 1 of 1

JamesM tutorial kheap.c?

Posted: Tue Mar 01, 2016 3:11 pm
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.

Re: JamesM tutorial kheap.c?

Posted: Tue Mar 01, 2016 4:26 pm
by Combuster
Looks like you missed the details in the FAQ and Posting Checklist. Both tell you what you should have fixed instead.

Re: JamesM tutorial kheap.c?

Posted: Tue Mar 01, 2016 5:02 pm
by betatest3
Disregard this posting.
I fixed the problem. I changed my cflags to include "-m32", I still need to setup a cross compiler.