Changeset 379d73f3 in mainline for src


Ignore:
Timestamp:
2005-08-30T22:11:45Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c5ae095
Parents:
b524f816
Message:

Added putchar to AMD

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/build.amd64

    rb524f816 r379d73f3  
    22
    33set -e
     4# Generate context_offset.h
     5(cd ../arch/amd64/src;make gencontext;./gencontext)
     6# Create links to ia32 architecture
     7ln -sf ../../../arch/ia32/src/drivers ../arch/amd64/src/
     8ln -sf ../../../arch/ia32/include/ega.h ../arch/amd64/include/
    49
    5 (cd ../arch/amd64/src;make gencontext;./gencontext)
    610make all ARCH=amd64
  • src/lib/memstr.c

    rb524f816 r379d73f3  
    7171                p[i] = x;
    7272}
     73
     74/** Fill block of memory
     75 *
     76 * Fill cnt words at dst address with the value x.
     77 * The filling is done word-by-word.
     78 *
     79 * @param dst Origin address to fill.
     80 * @param cnt Number of words to fill.
     81 * @param x   Value to fill.
     82 *
     83 */
     84void _memsetw(__address dst, size_t cnt, __u16 x)
     85{
     86        int i;
     87        __u8 *p = (__u8 *) dst;
     88       
     89        for(i=0; i<cnt; i++)
     90                p[i] = x;       
     91}
Note: See TracChangeset for help on using the changeset viewer.