This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Hoernchen gerrit-no-reply at lists.osmocom.orgHoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16236 )
Change subject: prevent uart interrupts before having proper structs
......................................................................
prevent uart interrupts before having proper structs
Change-Id: I177b182e5c693da34183e9066351e6930c61e4a6
---
M sysmoOCTSIM/main.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/36/16236/1
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index e27e3dd..1949aa8 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -1173,6 +1173,8 @@
//FIXME osmo_emb has a pool?
msgb_set_talloc_ctx(g_tall_ctx);
+ //prevent spurious interrupts before our driver structs are ready
+ CRITICAL_SECTION_ENTER()
ccid_instance_init(&g_ci, &c_ops, &iso_fsm_slot_ops, &usb_fs_descs.ccid.class,
data_rates, clock_freqs, "", 0);
@@ -1183,6 +1185,7 @@
llist_add_tail_at(&msg->list, &g_ccid_s.free_q);
}
submit_next_out();
+ CRITICAL_SECTION_LEAVE()
// command_print_prompt();
while (true) { // main loop
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16236
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I177b182e5c693da34183e9066351e6930c61e4a6
Gerrit-Change-Number: 16236
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191126/af2d1f44/attachment.htm>