(And another way to do it is to simply allocate all your function call frames on the heap to begin with and not have a stack. Then call/cc is essentially free, but you need a really good incremental garbage collector because now every function call conses.)
> (let ((x 0)) (list (call/cc (lambda (f) (set! x 1) (f 2))) x))
(2 0)