[KERNEL32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 16 May 2010 00:30:11 +0000 (00:30 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 16 May 2010 00:30:11 +0000 (00:30 +0000)
commitfa5c83b4517b2b29c87bbdbfcd83f799d2c91406
treec6d49ddb0a666c8933a6e775047c65c21cda45bc
parentde96a18171ee5693efe88908b36cc3f4b7f2e2ce
[KERNEL32]
- SwitchToFiber: instead of doing a ret to the return address on the stack (which wouldn't work for a newly created fiber) store the returnaddress in the Eip field old fiber context and do a jmp to the Eip of the new fiber.
- BasepInitializeContext: set the Eip member of the Context to BaseFiberStartup for fibers
CreateFiberEx: initialize the fiber context, instead of an unused context on the stack.
- BaseFiberStartup: Use GetCurrentFiber, not GetFiberData to get the current fiber.
Fixes kernel32_wintest fiber

svn path=/trunk/; revision=47232
reactos/dll/win32/kernel32/misc/utils.c
reactos/dll/win32/kernel32/thread/fiber.c
reactos/dll/win32/kernel32/thread/i386/fiber.S