made typesave

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15937 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-01-13 13:45:40 +00:00
parent 8f0970fa79
commit 124a7ec381

View File

@ -142,7 +142,7 @@ ps2_flush()
status_t
ps2_command(uint8 cmd, const void *out, int in_count, void *out, int out_count)
ps2_command(uint8 cmd, const uint8 *out, int out_count, uint8 *in, int in_count)
{
status_t res;
int i;
@ -157,13 +157,13 @@ ps2_command(uint8 cmd, const void *out, int in_count, void *out, int out_count)
for (i = 0; res == B_OK && i < out_count; i++) {
res = ps2_wait_write();
if (res == B_OK)
ps2_write_data((const uint8 *)out[i]);
ps2_write_data(out[i]);
}
for (i = 0; res == B_OK && i < in_count; i++) {
res = ps2_wait_read();
if (res == B_OK)
(uint8 *)in[i] = ps2_read_data();
in[i] = ps2_read_data();
}
atomic_add(&sIgnoreInterrupts, -1);