From: Alan Cox Date: Wed, 5 Nov 2014 19:20:30 +0000 (+0000) Subject: filesys/syscall2: optimise a few spots with staticfast X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=38fcfe6d944509d2f111f2204075f9d84f187a8d;p=FUZIX.git filesys/syscall2: optimise a few spots with staticfast --- diff --git a/Kernel/filesys.c b/Kernel/filesys.c index 324e9045..63d35beb 100644 --- a/Kernel/filesys.c +++ b/Kernel/filesys.c @@ -36,9 +36,9 @@ inoptr n_open(char *uname, inoptr *parent) inoptr kn_open(char *name, inoptr *parent) { - inoptr wd; /* the directory we are currently searching. */ + staticfast inoptr wd; /* the directory we are currently searching. */ register char *np = name; - inoptr ninode; + staticfast inoptr ninode; inoptr temp; #ifdef DEBUG diff --git a/Kernel/syscall_fs2.c b/Kernel/syscall_fs2.c index fe7d917c..24754461 100644 --- a/Kernel/syscall_fs2.c +++ b/Kernel/syscall_fs2.c @@ -408,9 +408,9 @@ int16_t _open(void) { int8_t uindex; int8_t oftindex; - inoptr ino; + staticfast inoptr ino; int16_t perm; - inoptr parent; + staticfast inoptr parent; char fname[FILENAME_LEN + 1]; int trunc; int r;