Skip to content

Commit

Permalink
Fixed another issue similar to #14.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlun committed Mar 20, 2015
1 parent 3ec9190 commit 9c3fb3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/system/system_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ static inline return_type system_call_kernelfs_entry_read(void *buffer)
{
return_type return_value;

asm volatile("pushl %2\n"
"lcall %3, $0"
: "=a" (return_value),
"=ri" (*(int *) buffer)
asm volatile("pushl %1\n"
"lcall %2, $0"
: "=a" (return_value)
: "ri" (buffer),
"n" (SYSTEM_CALL_KERNELFS_ENTRY_READ << 3));
"n" (SYSTEM_CALL_KERNELFS_ENTRY_READ << 3)
: "memory");

return return_value;
}
Expand Down

0 comments on commit 9c3fb3a

Please sign in to comment.