1 /* ----------------------------------------------------------------------- *
3 * Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
16 * Output to the screen
22 #define NULL ((void *)0)
24 static inline void memset(void *buf
, int ch
, unsigned int len
)
26 asm volatile("cld; rep; stosb"
27 : "+D" (buf
), "+c" (len
) : "a" (ch
) : "memory");
34 memset(®s
, 0, sizeof regs
);
43 __com32
.cs_intcall(0x21, ®s
, NULL
);
48 /* Note: doesn't put '\n' like the stdc version does */
49 int puts(const char *s
)