pub inline fn current() Csky
530 531 532 533 534 535 536 537 538 539 540 541
pub inline fn current() Csky { var ctx: Csky = undefined; asm volatile ( \\ stm r0-r31, (t0) \\ grs t1, 1f \\1: \\ st32.w t1, (t0, 128) : : [ctx] "{r12}" (&ctx), : .{ .r13 = true, .memory = true }); return ctx; }