((char *)s)[--n] = c;
}
-static inline void
-memcpy(void *d, void *s, size_t n)
-{
- while (n) {
- ((char *)d)[n-1] = ((char *)s)[n-1];
- n--;
- }
-}
-
static inline void
eoi_master_pic()
{
set_cf(regs, code);
}
-unsigned long
-align(unsigned long addr, unsigned long v)
-{
- return (addr + v - 1) & ~(v - 1);
-}
-
#endif // util.h