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.
JamesM tutorial kheap.c?
- Combuster
- 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?
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?
Disregard this posting.
I fixed the problem. I changed my cflags to include "-m32", I still need to setup a cross compiler.
I fixed the problem. I changed my cflags to include "-m32", I still need to setup a cross compiler.