From 9bb917670daf950a11f19c795c6fef7ce395dd0f Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Wed, 28 Dec 2016 17:24:50 +0000 Subject: [PATCH] zeta-v2: Save a few bytes --- Kernel/platform-zeta-v2/zeta-v2.s | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Kernel/platform-zeta-v2/zeta-v2.s b/Kernel/platform-zeta-v2/zeta-v2.s index 6b4ed8b5..6fdce980 100644 --- a/Kernel/platform-zeta-v2/zeta-v2.s +++ b/Kernel/platform-zeta-v2/zeta-v2.s @@ -316,9 +316,7 @@ _program_vectors: map_process_always: push hl ld hl,#U_DATA__U_PAGE - call map_process_2 - pop hl - ret + jr map_process_2_pophl_ret ;========================================================================= ; map_process - map process or kernel pages @@ -338,9 +336,7 @@ map_process: map_kernel: push hl ld hl,#_kernel_pages - call map_process_2 - pop hl - ret + jr map_process_2_pophl_ret ;========================================================================= ; map_process_2 - map process or kernel pages @@ -377,6 +373,7 @@ map_process_2: map_restore: push hl ld hl,#map_savearea +map_process_2_pophl_ret: call map_process_2 pop hl ret -- 2.34.1