he had hardly slept last night , and after an hour of restless tossing he had given up even the attempt , dressed , and walked the top of the wall till the sun came up , wrestling with stannis baratheon 's offer .