In compressed/head.S there is a lss stack_start. Paging is not enabled yet. So stack_start is essentially pointing to garbage or may be even non-existent memory.
How does this work? It doesnt in my loader. I am using a personal loader for loading a flashed linux. The loader residing on the flash as an EFI. But Its hitting a GPF at this stack_start, since its pointing to nowhere.
WILL BE GLAD TO HEAR SOME INFORMATION ON THIS.
Got the answer. There should not be a problem, because head.S is compieled with -Ttext $(IMAGE_OFFSET). IMAGE_OFFSET being 100000.
But somehow the kernel tat I am using seems to have a problem. So let me try using another kernel and see what happens.