diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-03-21 21:02:52 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-03-21 21:02:52 +0000 |
commit | 23cf8028ec4b7bb2206fbfde1fe9b59ac977f324 (patch) | |
tree | 516e33d63d67dea70c373bd3dae453ca9bdd5d99 /libgloss/nds32/_gettimeofday.S | |
parent | e59026e844dc2f11f032058e671da848beb67f91 (diff) | |
download | cygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.tar.gz cygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.tar.bz2 cygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.zip |
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/_argv.S: Replace syscall with break.
* nds32/_argvlen.S: Ditto.
* nds32/_chdir.S: Ditto.
* nds32/_chmod.S: Ditto.
* nds32/_close.S: Ditto.
* nds32/_exit.S: Ditto.
* nds32/_fstat.S: Ditto.
* nds32/_getpid.S: Ditto.
* nds32/_gettimeofday.S: Ditto.
* nds32/_isatty.S: Ditto.
* nds32/_kill.S: Ditto.
* nds32/_link.S: Ditto.
* nds32/_lseek.S: Ditto.
* nds32/_open.S: Ditto.
* nds32/_read.S: Ditto.
* nds32/_rename.S: Ditto.
* nds32/_stat.S: Ditto.
* nds32/_system.S: Ditto.
* nds32/_time.S: Ditto.
* nds32/_times.S: Ditto.
* nds32/_unlink.S: Ditto.
* nds32/_utime.S: Ditto.
* nds32/_write.S: Ditto.
* nds32/syscall_error_handler.S: Ditto.
* nds32/vh.h: New.
Diffstat (limited to 'libgloss/nds32/_gettimeofday.S')
-rw-r--r-- | libgloss/nds32/_gettimeofday.S | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libgloss/nds32/_gettimeofday.S b/libgloss/nds32/_gettimeofday.S index 85e2eaec3..adc5f6847 100644 --- a/libgloss/nds32/_gettimeofday.S +++ b/libgloss/nds32/_gettimeofday.S @@ -27,8 +27,16 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "../syscall.h" -#include "syscall_extra.h" +#ifdef __NDS32_VH__ + +#include "vh.h" +.extern _impure_ptr +TYPE3 _gettimeofday, VH_GETTIMEOFDAY +#else /* not __NDS32_VH__ */ +#include "../syscall.h" +#include "syscall_extra.h" SYS_WRAPPER _gettimeofday, SYS_gettimeofday + +#endif /* not __NDS32_VH__ */ |