-#undef DEBUG
+#define DEBUG
#include <kernel.h>
#include <kdata.h>
#include <printf.h>
/* And move past the slash, or not the string start */
ptr++;
memcpy(name, ptr, FILENAME_LEN);
- brelse(buf);
+ tmpfree(buf);
}
ide_identify(0, buf);
if (ide_present)
ide_identify(1, buf);
- brelse((bufptr) buf);
+ tmpfree(buf);
}
ide_identify(0, buf);
if (ide_present)
ide_identify(1, buf);
- brelse((bufptr) buf);
+ tmpfree(buf);
}
void pathfree(char *tb)
{
- brelse(tb);
+ tmpfree(tb);
}
#endif
}
/* release temporary memory */
- brelse((bufptr)br);
+ tmpfree(br);
}
tmp = (uint8_t *)tmpbuf();
err = gfx_draw_op(arg, ptr, tmp);
- brelse((bufptr) tmp);
+ tmpfree(tmp);
if (err) {
udata.u_error = err;
err = -1;
if (draw_validate(ptr, l, 480, 64))
goto bad; */
video_cmd(tmp);
- brelse((bufptr) tmp);
+ tmpfree(tmp);
return 0;
default:
udata.u_error = EINVAL;
if (vmode == 1) {
uint8_t *tmp = (uint8_t *)tmpbuf();
err = gfx_draw_op(arg, ptr, tmp);
- brelse((bufptr) tmp);
+ tmpfree(tmp);
if (err) {
udata.u_error = err;
err = -1;
void pathfree(char *tb)
{
- brelse(tb);
+ tmpfree(tb);
}
#endif
kprintf("mdv_open: had to use secondary map\n");
}
memcpy(mdvmap[minor], t, 256);
- brelse(t);
+ tmpfree(t);
mdv_motor_off();
}
mdv_count[minor]++;