Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347245
b: refs/heads/master
c: 288dc2b
h: refs/heads/master
i:
  347243: cebebb5
v: v3
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent e80ab4a commit 7d952b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 382cb5b91747f4f4d1f9883a39deec1b3d7fb906
refs/heads/master: 288dc2b68c110cd2b14b17f047b85859bc644955
7 changes: 1 addition & 6 deletions trunk/arch/xtensa/platforms/iss/include/platform/simcall.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ static inline int __simc(int a, int b, int c, int d, int e, int f)
"mov %1, a3\n"
: "=a" (ret), "=a" (errno), "+r"(a1), "+r"(b1)
: "r"(c1), "r"(d1), "r"(e1), "r"(f1)
: );
: "memory");
return ret;
}

static inline int simc_open(const char *file, int flags, int mode)
{
wmb();
return __simc(SYS_open, (int) file, flags, mode, 0, 0);
}

Expand All @@ -91,27 +90,23 @@ static inline int simc_close(int fd)

static inline int simc_ioctl(int fd, int request, void *arg)
{
wmb();
return __simc(SYS_ioctl, fd, request, (int) arg, 0, 0);
}

static inline int simc_read(int fd, void *buf, size_t count)
{
rmb();
return __simc(SYS_read, fd, (int) buf, count, 0, 0);
}

static inline int simc_write(int fd, const void *buf, size_t count)
{
wmb();
return __simc(SYS_write, fd, (int) buf, count, 0, 0);
}

static inline int simc_poll(int fd)
{
struct timeval tv = { .tv_sec = 0, .tv_usec = 0 };

wmb();
return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv,
0, 0);
}
Expand Down

0 comments on commit 7d952b4

Please sign in to comment.