A little bit of optimization. More can be done on
the amount being copied over.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
; get process table - must be in already from switchout
; jsr map_kernel
lda P_TAB__P_PAGE_OFFSET+1,x ; LSB of 16-bit page no
+
+ ; if we are switching to the same process
+ cmpa U_DATA__U_PAGE+1
+ beq nostash
+
jsr map_process_a
; fetch uarea from process memory
; get back kernel page so that we see process table
jsr map_kernel
+nostash:
;puls x
ldx _swapstack
; check u_data->u_ptab matches what we wanted