Patent ID: 8544021

Claim:
A method for executing instructions in a device comprising a computer, the method comprising: registering a DXE (Driver Execution Environment) driver port function and associating a set of information, including a set of corresponding formal arguments, with a request in a first execution context for a service, the set of information comprising a reference to the service and wherein the service requires honoring at least partially in a second execution context; creating a first copy of the set of information in a common area; making a first call to a kernel program, responsive to the first call creating a second execution context; performing a context switch from the first execution context to the second execution context; calling the DXE (Driver Execution Environment) driver port function with the set of information in the second execution context; making a LPC (local procedure call) to the kernel program; marshaling the first copy of the set of information into an area associated with an execution sequence to honor the service, comprising, copying actual arguments held on stack to an area off stack that is addressable from both first and second execution contexts, wherein the set of actual arguments are non-addressable in the first execution context, and wherein the marshaling is responsive to the LPC.