Subversion Repositories HelenOS-historic

Rev

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

Rev 364 Rev 413
Line 173... Line 173...
173
 
173
 
174
/** Print charactor to console */
174
/** Print charactor to console */
175
void arc_putchar(char ch)
175
void arc_putchar(char ch)
176
{
176
{
177
    __u32 cnt;
177
    __u32 cnt;
178
    pri_t pri;
178
    ipl_t ipl;
179
 
179
 
180
    /* TODO: Should be spinlock? */
180
    /* TODO: Should be spinlock? */
181
    pri = cpu_priority_high();
181
    ipl = interrupts_disable();
182
    arc_entry->write(1, &ch, 1, &cnt);
182
    arc_entry->write(1, &ch, 1, &cnt);
183
    cpu_priority_restore(pri);
183
    interrupts_restore(ipl);
184
   
184
   
185
}
185
}