From 2a2d096b61262c2059ea022379869b9c4a70eafa Mon Sep 17 00:00:00 2001
From: Kimplul <kimi.h.kuparinen@gmail.com>
Date: Fri, 14 Mar 2025 22:33:57 +0200
Subject: protect jit pages

---
 include/ejit/ejit.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'include')

diff --git a/include/ejit/ejit.h b/include/ejit/ejit.h
index 0c7f4c5..4ab2bbc 100644
--- a/include/ejit/ejit.h
+++ b/include/ejit/ejit.h
@@ -203,8 +203,11 @@ struct ejit_func *ejit_create_func(enum ejit_type rtype, size_t argc,
                                    const struct ejit_operand args[argc]);
 
 void ejit_compile_func(struct ejit_func *f);
+void ejit_compile_func_unsafe(struct ejit_func *f);
+
+/* if you say you're scared, the jit pages will be sealed to be X+R */
 void ejit_select_compile_func(struct ejit_func *f, size_t gpr, size_t fpr,
-                              bool use_64, bool try_jit);
+                              bool use_64, bool try_jit, bool im_scawed);
 
 long ejit_run_func_i(struct ejit_func *f, size_t argc,
                       struct ejit_arg args[argc]);
-- 
cgit v1.2.3