You mean how to get your own kernel's task eip? It's
like in userspace, you can directly access eip but the opcode "call"
pushes eip on the stack so eip can be accessed with this kind of code:
get_eip: mov (%esp), %eax ret
call get_eip //some code <--- eip of this line will be on eax