Skip to content
Snippets Groups Projects
  1. Jul 15, 2013
  2. Jul 09, 2013
    • Glauber Costa's avatar
      bsd: stubs for sx_xlock · 29d05537
      Glauber Costa authored
      Aside from mutex, BSD always implements sx locks. They are a form of rwlock,
      and according to BSD's sx.h, the differences from their own rwlock are an
      implementation detail. Let's just use them as rwlocks for now.
      
      The declarations are uglier than I wanted. But this file ends up being included
      from c and cc code, and rwlock.h calls condvar.h inside - which is full of
      sync_stub.h - and as a result condvar.h itself - are usually included in extern
      "C" blocks. Because we are not expected to use sxlocks from C, it should be
      fine.
      29d05537
  3. Jun 26, 2013
    • Glauber Costa's avatar
      bsd: provide correct number of ncpus · 71be883c
      Glauber Costa authored
      As the comment states itself, mp_ncpus should be the number of CPUs
      in the system, not the maximum number of CPUs. We can currently grab
      that from the smp_processors variable.
      
      I have audited the code for current users, though, and found two places
      in which it is used as the maximum number of cpus. Those are changed to
      MAXCPU
      71be883c
  4. Jun 19, 2013
    • Guy Zana's avatar
      bsd: avoid using extern "C" in c++ files · 8536721b
      Guy Zana authored
      1. it is much cleaner that the header files perform extern "C" themselves,
         so they can be included both from C and C++ code.
      
      2. when doing extern "C" from a C++ file then __cplusplus is also defined,
         and compilation can break in some situations.
      
      3. as a bonus, this patch increase compilation time.
      8536721b
    • Nadav Har'El's avatar
      bsd netport: rename log() to bsd_log() · bdd2b656
      Nadav Har'El authored
      netport.h defines a log() macro, which is an unfortunate choice of name
      because log is also a pretty-well-known mathematical function, and this
      
      So rename this macro bsd_log(), and change the dozen files which used
      log() to use bsd_log().
      bdd2b656
  5. Jun 09, 2013
  6. May 27, 2013
  7. May 26, 2013
  8. May 24, 2013
  9. May 20, 2013
  10. May 18, 2013
  11. May 16, 2013
  12. May 12, 2013
  13. May 10, 2013
  14. May 08, 2013
    • Christoph Hellwig's avatar
      import BSD taskqueues · df0d76e9
      Christoph Hellwig authored
      We leave out the taskqueues running in software interrupts (OSv doesn't have
      this concept and most likely never will), as well as those having timeouts
      (we can add those once needed)
      df0d76e9
    • Christoph Hellwig's avatar
      add a minimal BSD kthread abstraction · 3042f6fb
      Christoph Hellwig authored
      kthread are implemented on top of pthreads for now as they give us
      a thread identifier easily usable from C code.
      3042f6fb
  15. Apr 17, 2013
  16. Apr 07, 2013
  17. Apr 02, 2013
  18. Mar 31, 2013
  19. Mar 07, 2013
  20. Mar 06, 2013
  21. Mar 05, 2013
Loading