Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (4 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/bits.c

    r11 r23  
    2525#include <hal_types.h>
    2626#include <bits.h>
     27
     28////////////////////////////////////
     29void bitmap_init( bitmap_t * bitmap,
     30                  uint32_t   len )
     31{
     32    uint32_t word;
     33    uint32_t nwords = BITMAP_SIZE( len );
     34    for( word = 0 ; word < nwords ; word++ )
     35    {
     36        bitmap[word] = 0;
     37    }
     38}  // end bitmap_init()
    2739
    2840//////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.