prevent uart interrupts before having proper structs

Change-Id: I9cf7ff883721211ae11821339505d2e3b2a7961e
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 0f2409a..7ddca92 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -470,6 +470,8 @@
 
 	LOGP(DUSB, LOGL_ERROR, "foobar usb\n");
 
+	//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);
 
@@ -480,6 +482,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