2023-06-20 12:01:24 -07:00
|
|
|
%macro memcpy_current_general
|
2023-02-10 16:31:35 -08:00
|
|
|
// stack: dst, src, len
|
2023-06-21 09:03:43 -07:00
|
|
|
GET_CONTEXT
|
2023-06-21 12:32:39 -07:00
|
|
|
%stack (context, dst, src, len) -> (context, @SEGMENT_KERNEL_GENERAL, dst, context, @SEGMENT_KERNEL_GENERAL, src, len, %%after)
|
2023-02-10 16:31:35 -08:00
|
|
|
%jump(memcpy)
|
|
|
|
|
%%after:
|
|
|
|
|
%endmacro
|
|
|
|
|
|
2023-06-20 12:01:24 -07:00
|
|
|
%macro clear_current_general
|
2023-02-10 16:31:35 -08:00
|
|
|
// stack: dst, len
|
2023-06-21 09:03:43 -07:00
|
|
|
GET_CONTEXT
|
|
|
|
|
%stack (context, dst, len) -> (context, @SEGMENT_KERNEL_GENERAL, dst, 0, len, %%after)
|
2023-02-10 16:31:35 -08:00
|
|
|
%jump(memset)
|
|
|
|
|
%%after:
|
|
|
|
|
%endmacro
|