On Tue, Apr 22, 2014 at 4:53 PM, Grant Edwards
<grant.b.edwa...@gmail.com> wrote:
> On 2014-04-22, Peter Bigot <big...@acm.org> wrote:
>
>> I expect there'll be some issues with newlib as well; it appears to
>> use a unique syscall interface that I haven't tried to reverse
>> engineer.
>
> I don't understand.  A "syscall" API is usually the interface between
> libc code (which is running in user mode) and an underlying OS kernel
> that's running in protected mode.  Into what What OS kernel is newlib
> expecting to be able to make syscalls?

Whatever simulated environment is provided by the application or the
framework newlib links to, so as to support stdc library functions.

I was surprised to see DJ's comment that there actually was no
standard system interface; the "standard interface" I was referring to
is the one documented at http://neptune.billgatliff.com/newlib.html
which matches what I found in gcc-arm-embedded.  I have a (IMO) very
nice infrastructure supporting a variety of memory allocators and file
descriptors for BSPACM (a cross-vendor ARM Cortex-M infrastructure;
http://pabigot.github.io/bspacm/newlib.html#newlib_sys).

I was expecting for MSP430 to also simply implement the functions
stubbed in newlib's libnosys, but at first glance it looks like the
CIO one uses different names, and maybe doesn't support all the same
functions.

>
> For example, the syscall interface I deal with is the API between
> either glibc or uclibc and the Linux kernel.  It's architecture
> specific, since the the mechanism for swithcing to/from protected mode
> usually has to be done in assembler.  It's typically something like:
>
>   * Load parameters in to specific registers
>
>   * Execute some variety of "SWI" instruction to generate a hardware
>     exception/interrupt.
>
> --
> Grant Edwards               grant.b.edwards        Yow! Actually, what I'd
>                                   at               like is a little toy
>                               gmail.com            spaceship!!
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to