Similar to how system call works on int 0x80
, is it possible to implement my own ISR inside kernel so that on softirq assume int 0x120
or with any other softirq Program Counter can jump from user space to kernel space?
Is entering kernel in privileged mode is associated only with int 0x80
, or with any softirq implementation I can enter privileged mode automatically or for disabling the protected mode and entering into privileged mode we have to do manually by writing its associated flag?
and one more thing, if it is possible to implement this type of ISR, is the best possible way for data exchange is with registers EBX, ECX, EDX, ESI, EDI and EBP or any other way is still there?
I already saw How to define and trigger my own new softirq in linux kernel? but didn't got the solution I was looking for.
I'll make it some more clear, why i need this
I had implemented few kernel functions, which are directly talking to hardware peripherals, I want them to trigger from user space using software interrupt. can't use system calls with available driver architecture because i need to reduce execution time.