Re: eboot, accessing hardware

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



=?Utf-8?B?TWFhcnRlbg==?= <Maarten@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in news:7D688E3A-F589-4AB9-AB7F-A943489BB569@xxxxxxxxxxxxx:

During eboot I need to access the I2C bus. Is it allowed to use
the code out of the Chip Support Package to do this? The I2C
component that is used in NK is also using this code.

If the code inside the CSP does not use any OS API, don't rely on
interrups (usually not enabled inside the bootloader) and allows you
to change the addresses used to access the device (if the loader uses
a different virtual memory map or does not enable MMU) you will be
able to use it as is.
If the code uses some OS API you may try to re-implement them inside
the bootloader using the same prototype. Obviously some API may be
easy to "fake" while other may require a lot of work (ex: to
"simulate" a IST or something like that) and will make a rewrite of
those routines quicker than a porting.
If you provide more detail about the CPU you are using, somebody who
know that CPU and it's BSP may provide you more "targeted"
information.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: [PATCH 6/6] sched: disabled rt-bandwidth by default
    ... standards and previous Linux behaviour by default for something that it is ... monopolization" is OK to me - it still keeps runaway CPU loops (which ... RT tasks have always been debuggable by using a simple watchdog thread. ... us breaking our API to cater for their idiocity. ...
    (Linux-Kernel)
  • Re: [PATCH 6/6] sched: disabled rt-bandwidth by default
    ... I do not agree that it is too tight, ... monopolization" is OK to me - it still keeps runaway CPU loops (which ... RT tasks have always been debuggable by using a simple watchdog thread. ... us breaking our API to cater for their idiocity. ...
    (Linux-Kernel)
  • Re: yield API
    ... certain apps, i could immediately show you tons of examples where they ... just about any other core kernel concept or API. ... there is a need for something that will give up the CPU ...
    (Linux-Kernel)
  • Re: Linux compatible setaffinity.
    ... However, sometimes one needs a hard CPU binding interface like this one, and I don't see any reason to defer adding this interface in favor of the Apple one, since they are somewhat orthogonal. ... Of course, Jeff's implementation of the Linux API doesn't actually fully implement the API. ... the Solaris facility to be able to change a CPU set and have all the things pinned to it follow the centrally-administered set is a nice match for our concept of Jail. ...
    (freebsd-arch)