Lines Matching refs:fp
182 def __write_code_irq_vector_table(self, fp): argument
183 fp.write(self.source_assembly_header)
185 fp.write("void __irq_vector_table __attribute__((naked)) _irq_vector_table(void) {\n")
197 fp.write("\t__asm(ARCH_IRQ_VECTOR_JUMP_CODE({}));\n".format(func_as_string))
198 fp.write("}\n")
200 def __write_address_irq_vector_table(self, fp): argument
201 fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % self.__nv)
209 fp.write("\t{},\n".format(func))
211 fp.write("\t((uintptr_t)&{}),\n".format(func))
213 fp.write("};\n")
215 def __write_shared_table(self, fp): argument
216 fp.write("struct z_shared_isr_table_entry __shared_sw_isr_table"
228 fp.write("\t{ },\n")
230 fp.write(f"\t{{ .client_num = {client_num}, .clients = {{ ")
235 … fp.write(f"{{ .isr = (ISR){ hex(routine) if isinstance(routine, int) else routine }, "
238 fp.write(" },\n},\n")
240 fp.write("};\n")
242 def write_source(self, fp): argument
243 fp.write(self.source_header)
246 self.__write_shared_table(fp)
250 self.__write_address_irq_vector_table(fp)
252 self.__write_code_irq_vector_table(fp)
259 fp.write("struct _isr_table_entry __sw_isr_table _sw_isr_table[%d] = {\n"
285 fp.write("\t/* Level 2 interrupts start here (offset: {}) */\n".
288 fp.write("\t/* Level 3 interrupts start here (offset: {}) */\n".
291 … fp.write("\t{{(const void *){0}, (ISR){1}}}, /* {2} */\n".format(param, func_as_string, i))
292 fp.write("};\n")