From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 17 Oct 2011 22:50:09 +0200 Subject: [U-Boot] [PATCH v6 13/20] sandbox: Add OS dependent layer In-Reply-To: <1318270953-32482-14-git-send-email-sjg@chromium.org> References: <1318270953-32482-1-git-send-email-sjg@chromium.org> <1318270953-32482-14-git-send-email-sjg@chromium.org> Message-ID: <20111017205009.A5797140797D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1318270953-32482-14-git-send-email-sjg@chromium.org> you wrote: > We want to keep all OS-dependent code in once place, with a simple interface > to U-Boot. For now, this is that place. > > Signed-off-by: Simon Glass > --- > Changes in v2: > - Move os layer into arch/sandbox > - Remove clean and dist-clean targets from Makefile > - Try and fail to remove the global -I/usr/include > > Changes in v3: > - Add os_exit() which always exits with success for now > - Add function comments to header file > - Call os_exit() in do_reset() > - Move cpu files into arch/sandbox/cpu > > Changes in v4: > - Allow os_exit() to exit with a non-zero return code > > arch/sandbox/cpu/Makefile | 5 ++- > arch/sandbox/cpu/cpu.c | 7 ++-- > arch/sandbox/cpu/os.c | 55 ++++++++++++++++++++++++++++++++++ > include/os.h | 73 +++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 135 insertions(+), 5 deletions(-) > create mode 100644 arch/sandbox/cpu/os.c > create mode 100644 include/os.h Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A UNIX saleslady, Lenore, Enjoys work, but she likes the beach more. She found a good way To combine work and play: She sells C shells by the seashore.