Annotation of coherent/d/conf/tboot/Examples/read16.c, revision 1.1

1.1     ! root        1: 
        !             2: /* Fill a region of memory with zeros.  */
        !             3: zero_fill(from, to)
        !             4: char *from;
        !             5: char *to;
        !             6: {
        !             7:         register char *p;
        !             8: 
        !             9:         p = from;
        !            10:         while (p<to) {
        !            11:                 *p = 0;
        !            12:                 p++;
        !            13:         }
        !            14: }
        !            15: 
        !            16: /* Read a 16 byte number from the CMOS.  */
        !            17: unsigned int
        !            18: read16_cmos(addr)
        !            19: unsigned int addr;
        !            20: {
        !            21:         unsigned char read_cmos();
        !            22:        
        !            23:        return((read_cmos(addr+1)<<8) + read_cmos(addr));
        !            24: } /* read16_cmos() */
        !            25: 
        !            26: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.