Skip to content

Commit

Permalink
Update macos patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pjonsson committed Sep 3, 2023
1 parent d8a3361 commit 0c44a80
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions macos.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ index 37a6d965a..139140b04 100644
$(Q)$(SIZE) $(LIBNAME) | grep $(BUILD_DIR_BOARD) >> $(BINARY_SIZE_LOGFILE)
endif
diff --git a/arch/platform/cooja/mtype.c b/arch/platform/cooja/mtype.c
index 137fa043f..e4d1ed68a 100644
index 137fa043f..2381f0008 100644
--- a/arch/platform/cooja/mtype.c
+++ b/arch/platform/cooja/mtype.c
@@ -51,6 +51,17 @@ int main(void);
Expand All @@ -33,16 +33,31 @@ index 137fa043f..e4d1ed68a 100644
/*
* Contiki and rtimer threads.
*/
@@ -87,6 +98,12 @@ cooja_init(void)
if((rv = cooja_mt_init(&cooja_thread))) {
return rv;
}
@@ -78,6 +89,27 @@ process_run_thread_loop(void)
/* Then call common Contiki-NG main function */
main();
}
+#ifdef __APPLE__
+long mtype_dataStart(void) {
+ (void)cooja_DATAStart; (void)cooja_DATAEnd;
+ printf("%p:%p\n", cooja_dataStart, cooja_dataEnd);
+ printf("%p:%p\n", cooja_bssStart, cooja_bssEnd);
+ printf("%p:%p\n", cooja_commonStart, cooja_commonEnd);
+ return cooja_dataStart;
+}
+long mtype_dataEnd(void) {
+ return cooja_dataEnd;
+}
+long mtype_bssStart(void) {
+ return cooja_bssStart;
+}
+long mtype_bssEnd(void) {
+ return cooja_bssEnd;
+}
+long mtype_commonStart(void) {
+ return cooja_commonStart;
+}
+long mtype_commonEnd(void) {
+ return cooja_commonEnd;
+}
+#endif
cooja_mt_start(&cooja_thread, &rtimer_thread, rtimer_thread_loop);
cooja_mt_start(&cooja_thread, &process_run_thread, process_run_thread_loop);
return 0;
/*---------------------------------------------------------------------------*/
int
cooja_init(void)

0 comments on commit 0c44a80

Please sign in to comment.