[openEuler-5.10 244/557] task_stack: Fix end_of_stack() for architectures with upwards-growing stack