public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Neundorf, Alexander" <Alexander.Neundorf@jenoptik.com>
To: <ecos-discuss@sources.redhat.com>
Subject: [ECOS] [PATCH] synth. target: add mkdir() and HAL_PLATFORM_RESET
Date: Wed, 04 Aug 2004 12:11:00 -0000	[thread overview]
Message-ID: <5A8A17126B73AC4C83968F6C4505E3C5EA70DE@JO-EX01.JENOPTIK.NET> (raw)

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

Hi,

the attached patch adds the mkdir() system call to the synthetic target.
Additionally it defines HAL_PLATFORM_RESET() as cyg_hal_sys_exit(0), which comes closest to a reset for the synth target IMO.

Bye
Alex

[-- Attachment #2: synth.diff --]
[-- Type: application/octet-stream, Size: 2623 bytes --]

diff -rbup synth.orig/arch/current/ChangeLog synth/arch/current/ChangeLog
--- synth.orig/arch/current/ChangeLog	Mon Jun 21 11:53:25 2004
+++ synth/arch/current/ChangeLog	Wed Aug  4 14:16:40 2004
@@ -1,3 +1,9 @@
+2004-08-04  Alexander Neundorf <alexander.neundorf@jenoptik.com>
+        * include/hal_io.h
+        Add cyg_hal_sys_mkdir() system call
+        * include/hal_intr.h
+        Add HAL_PLATFORM_RESET() macro
+
 2004-06-21  Alexander Neundorf <alexander.neundorf@jenoptik.com>
 
 	* include/hal_io.h: 
diff -rbup synth.orig/arch/current/include/hal_intr.h synth/arch/current/include/hal_intr.h
--- synth.orig/arch/current/include/hal_intr.h	Fri May 24 01:05:27 2002
+++ synth/arch/current/include/hal_intr.h	Wed Aug  4 14:14:40 2004
@@ -214,6 +214,8 @@ externC void                hal_interrup
     hal_interrupt_set_level(_vector_, _level_);                 \
     CYG_MACRO_END
 
+#define HAL_PLATFORM_RESET()                    cyg_hal_sys_exit(0)
+
 // Additional data exported by the synthetic target interrupt handling
 // subsystem. These two variables correspond to typical interrupt
 // status and mask registers.
diff -rbup synth.orig/arch/current/include/hal_io.h synth/arch/current/include/hal_io.h
--- synth.orig/arch/current/include/hal_io.h	Mon Jun 21 11:53:26 2004
+++ synth/arch/current/include/hal_io.h	Wed Aug  4 14:18:22 2004
@@ -492,6 +492,7 @@ externC int cyg_hal_sys_readdir(unsigned
                                 unsigned int count);
 externC int cyg_hal_sys_lstat(const char* name, struct cyg_hal_sys_stat *buf);
 externC int cyg_hal_sys_fstat(int fd, struct cyg_hal_sys_stat *buf);
+externC int cyg_hal_sys_mkdir(const char* path, int mode);
 
 // Access to environmental data
 extern int              cyg_hal_sys_argc;
diff -rbup synth.orig/i386linux/current/ChangeLog synth/i386linux/current/ChangeLog
--- synth.orig/i386linux/current/ChangeLog	Mon Jun 21 11:55:02 2004
+++ synth/i386linux/current/ChangeLog	Wed Aug  4 14:19:02 2004
@@ -1,3 +1,9 @@
+2004-08-04  Alexander Neundorf <alexander.neundorf@jenoptik.com>
+
+	* src/syscall-i386-linux-1.0.S:
+	Add mkdir system call
+
+
 2004-06-21  Alexander Neundorf <alexander.neundorf@jenoptik.com>
 
 	* src/syscall-i386-linux-1.0.S:
diff -rbup synth.orig/i386linux/current/src/syscall-i386-linux-1.0.S synth/i386linux/current/src/syscall-i386-linux-1.0.S
--- synth.orig/i386linux/current/src/syscall-i386-linux-1.0.S	Mon Jun 21 11:55:02 2004
+++ synth/i386linux/current/src/syscall-i386-linux-1.0.S	Wed Aug  4 14:13:40 2004
@@ -439,3 +439,4 @@ SYSCALL2(access)
 SYSCALL3(readdir)
 STATCALL2(lstat)
 STATCALL2(fstat)
+SYSCALL2(mkdir)

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2004-08-04 12:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-04 12:11 Neundorf, Alexander [this message]
2004-08-04 15:01 ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5A8A17126B73AC4C83968F6C4505E3C5EA70DE@JO-EX01.JENOPTIK.NET \
    --to=alexander.neundorf@jenoptik.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).