Dead on his feet

What's the origin of this saying. I haven't got a clue albeit I know it means tired to the point where your only option is to go to sleep.

Replies