Subversion Repositories HelenOS

Rev

Rev 2975 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2975 Rev 3004
Line 40... Line 40...
40
 
40
 
41
static void kputint(unsigned i)
41
static void kputint(unsigned i)
42
{
42
{
43
    unsigned dummy;
43
    unsigned dummy;
44
    asm volatile (
44
    asm volatile (
45
        "movl $30, %%eax;"
45
        "movl $31, %%eax;"
46
        "int $0x30"
46
        "int $0x30"
47
        : "=d" (dummy) /* output - %edx clobbered */
47
        : "=d" (dummy) /* output - %edx clobbered */
48
        : "d" (i) /* input */
48
        : "d" (i) /* input */
49
        : "%eax","%ecx" /* all scratch registers clobbered */
49
        : "%eax","%ecx" /* all scratch registers clobbered */
50
    ); 
50
    );