Hi Bjarke, When the kernel reboots into recovery-mode, its a warm-reset. (NOT a cold-reset where contents of ALL registers are lost.)
Before warm-reboot, the kernel sets a particular register to a specify value (the value in this register is retained even after a warm-reset.) The bootloader just reads this register as part of it boot-up routine and upon finding the specific recovery value, starts the kernel and points it to the recovery-fs this time as you rightly identified. The exact register used may vary in different architectures/devices. Regards CVS -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting