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.
i need to know where my kernel end. I read that a good solution is to set up a symbol with the linker script.
If i understood correctly, i tell the linker to set up some memory with a symbol that i decide at the end of the kernel, so i'll search it and where i found it is the end of the kernel. This is correctly? and how can i do this? i use the follow linker script:
The linker script will define symbols that you can access in your application. I'm not sure what language you are using, but in C you simply use an extern to access it like you would any other externally defined symbol.
In this case, it is the symbol "end". The symbol is the value of the code there. Kinda weird, but to use the symbol:
Is char big enough to hold it? AFAIK the symbol is a pointer and you need a variable as big as native machine registers, otherwise you'll get incomplete address.