Subversion Repositories Kolibri OS

Rev

Rev 4280 | Rev 4398 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4280 Rev 4293
Line 182... Line 182...
182
    printf("-m    set videomode\n");
182
    printf("-m    set videomode\n");
Line 183... Line 183...
183
 
183
 
184
    if( cmdline && *cmdline )
184
    if( cmdline && *cmdline )
Line 185... Line 185...
185
        parse_cmdline(cmdline, cmdtable, log, &usermode);
185
        parse_cmdline(cmdline, cmdtable, log, &usermode);
186
 
-
 
187
    if(!dbg_open(log))
-
 
188
    {
-
 
189
        strcpy(log, "/tmp1/1/i915.log");
-
 
190
 
186
 
191
        if(!dbg_open(log))
187
    if( *log && !dbg_open(log))
192
        {
188
        {
193
            printf("Can't open %s\nExit\n", log);
-
 
194
            return 0;
189
            printf("Can't open %s\nExit\n", log);
Line 195... Line 190...
195
        };
190
            return 0;
196
    }
191
    }
Line 620... Line 615...
620
{
615
{
621
    char  c;
616
    char  c;
Line 622... Line 617...
622
 
617
 
623
    while( (c = *p++) == ' ');
618
    while( (c = *p++) == ' ');
624
        p--;
619
        p--;
-
 
620
    while((c = *p++) && (c != ' '))
-
 
621
        *log++ = c;
625
    while( (c = *log++ = *p++) && (c != ' '));
622
 
Line 626... Line 623...
626
    *log = 0;
623
    *log = 0;
627
 
624
 
Line 641... Line 638...
641
        {
638
        {
642
            if(p1 = strstr(cmdline, table->key))
639
            if(p1 = strstr(cmdline, table->key))
643
            {
640
            {
644
                p1+= table->size;
641
                p1+= table->size;
645
                *table->val = my_atoi(&p1);
642
                *table->val = my_atoi(&p1);
646
//                printf("%s %d\n", table->key, *table->val);
-
 
647
            }
643
            }
648
            table++;
644
            table++;
649
        }
645
        }
650
    }
646
    }
Line 694... Line 690...
694
    : "=a" (__res), "=&c" (d0), "=&S" (d1)
690
    : "=a" (__res), "=&c" (d0), "=&S" (d1)
695
    : "0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
691
    : "0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
696
    : "dx", "di");
692
    : "dx", "di");
697
return __res;
693
return __res;
698
}
694
}
-
 
695
>
-
 
696
>