···155};156157static void release_progmem(void *ptr);158-extern void save_gp_address(unsigned int secbase, unsigned int rel);159160/* get the vpe associated with this minor */161-struct vpe *get_vpe(int minor)162{163 struct vpe *v;164···173}174175/* get the vpe associated with this minor */176-struct tc *get_tc(int index)177{178 struct tc *t;179···198}199200/* allocate a vpe and associate it with this minor (or index) */201-struct vpe *alloc_vpe(int minor)202{203 struct vpe *v;204···215}216217/* allocate a tc. At startup only tc0 is running, all other can be halted. */218-struct tc *alloc_tc(int index)219{220 struct tc *tc;221···231}232233/* clean up and free everything */234-void release_vpe(struct vpe *v)235{236 list_del(&v->list);237 if (v->load_addr)···239 kfree(v);240}241242-void dump_mtregs(void)243{244 unsigned long val;245···550 [R_MIPS_PC16] = "MIPS_PC16"551};552553-int apply_relocations(Elf32_Shdr *sechdrs,554 const char *strtab,555 unsigned int symindex,556 unsigned int relsec,···595 return 0;596}597598-void save_gp_address(unsigned int secbase, unsigned int rel)599{600 gp_addr = secbase + rel;601 gp_offs = gp_addr - (secbase & 0xffff0000);
···155};156157static void release_progmem(void *ptr);0158159/* get the vpe associated with this minor */160+static struct vpe *get_vpe(int minor)161{162 struct vpe *v;163···174}175176/* get the vpe associated with this minor */177+static struct tc *get_tc(int index)178{179 struct tc *t;180···199}200201/* allocate a vpe and associate it with this minor (or index) */202+static struct vpe *alloc_vpe(int minor)203{204 struct vpe *v;205···216}217218/* allocate a tc. At startup only tc0 is running, all other can be halted. */219+static struct tc *alloc_tc(int index)220{221 struct tc *tc;222···232}233234/* clean up and free everything */235+static void release_vpe(struct vpe *v)236{237 list_del(&v->list);238 if (v->load_addr)···240 kfree(v);241}242243+static void dump_mtregs(void)244{245 unsigned long val;246···551 [R_MIPS_PC16] = "MIPS_PC16"552};553554+static int apply_relocations(Elf32_Shdr *sechdrs,555 const char *strtab,556 unsigned int symindex,557 unsigned int relsec,···596 return 0;597}598599+static inline void save_gp_address(unsigned int secbase, unsigned int rel)600{601 gp_addr = secbase + rel;602 gp_offs = gp_addr - (secbase & 0xffff0000);