Lines Matching refs:fp

63 void dump_mb_handler(FILE *fp, struct idlst *vec, int number);
64 void dump_ubavec(FILE *fp, char *vector, int number);
65 void dump_std(FILE *fp, FILE *gp);
66 void dump_intname(FILE *fp, char *vector, int number);
67 void dump_ctrs(FILE *fp);
68 void glue(FILE *fp, void (*dump_handler)(FILE *, struct idlst *, int));
76 register FILE *fp, *gp;
79 fp = fopen(path("ubglue.s"), "w");
80 if (fp == 0) {
98 dump_ubavec(fp, id->id,
108 dump_std(fp, gp);
118 dump_intname(fp, id->id,
128 dump_ctrs(fp);
129 (void) fclose(fp);
139 dump_ubavec(FILE *fp, char *vector, int number)
148 fprintf(fp, "\t.globl\t_X%s\n\t.align\t2\n_X%s:\n",
150 fprintf(fp,"\tTIM_PUSHR(0)\n");
151 fprintf(fp, "\tincl\t_fltintrcnt+(4*%d)\n", cntcnt++);
153 fprintf(fp, "\tmovl\t$%d,r0\n\tjmp\tdzdma\n\n", number);
156 fprintf(fp, "#ifdef UUDMA\n");
157 fprintf(fp, "\tmovl\t$%d,r0\n\tjsb\tuudma\n",
159 fprintf(fp, "#endif\n");
161 fprintf(fp, "\tpushl\t$%d\n", number);
162 fprintf(fp, "\tcalls\t$1,_%s\n",vector);
163 fprintf(fp, "\tCOUNT(V_INTR)\n");
164 fprintf(fp, "\tTSREI_POPR\n");
175 fprintf(fp, "\tDZINTR(%s,%d)\n", vector, number);
177 fprintf(fp, "\tDEVINTR(%s,%d)\n", vector, number);
202 dump_std(FILE *fp, FILE *gp)
208 fprintf(fp, "\n\t.globl\t_intrnames\n");
209 fprintf(fp, "\n\t.globl\t_eintrnames\n");
210 fprintf(fp, "\t.data\n");
211 fprintf(fp, "_intrnames:\n");
231 fprintf(fp, "\t.asciz\t\"%s\"\n", *cpp);
237 dump_intname(FILE *fp, char *vector, int number)
241 fprintf(fp, "\t.asciz\t\"");
251 putc(*cp, fp);
254 fprintf(fp, "%d\"\n", number);
261 dump_ctrs(FILE *fp)
265 fprintf(fp, "_eintrnames:\n");
266 fprintf(fp, "\n\t.globl\t_intrcnt\n");
267 fprintf(fp, "\n\t.globl\t_eintrcnt\n");
268 fprintf(fp, "\t.align 2\n");
269 fprintf(fp, "_intrcnt:\n");
270 fprintf(fp, "\t.space\t4 * %d\n", si->si_n);
271 fprintf(fp, "_fltintrcnt:\n");
272 fprintf(fp, "\t.space\t4 * %d\n", cntcnt);
273 fprintf(fp, "_eintrcnt:\n\n");
274 fprintf(fp, "\t.text\n");
285 dump_mb_handler(FILE *fp, struct idlst *vec, int number)
287 fprintf(fp, "\tVECINTR(_X%s%d, _%s, _V%s%d)\n",
294 register FILE *fp;
297 fp = fopen(path(name), "w");
298 if (fp == 0) {
302 fprintf(fp, "#include <machine/asm_linkage.h>\n\n");
303 glue(fp, dump_mb_handler);
304 (void) fclose(fp);
308 glue(FILE *fp, void (*dump_handler)(FILE *, struct idlst *, int))
322 (fp, vd, dp->d_unit);