4 static struct spinlock lock
;
6 static void print_serial(const char *buf
)
8 unsigned long len
= strlen(buf
);
10 asm volatile ("rep/outsb" : "+S"(buf
), "+c"(len
) : "d"(0xf1));
13 void puts(const char *s
)
22 asm volatile("out %0, %1" : : "a"(code
), "d"((short)0xf4));