OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arch-ebsa110/] [uncompress.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * linux/include/asm-arm/arch-ebsa/uncompress.h
3
 *
4
 * Copyright (C) 1996 Russell King
5
 */
6
 
7
/*
8
 * This does not append a newline
9
 */
10
static void puts(const char *s)
11
{
12
        __asm__ __volatile__("
13
        ldrb    %0, [%1], #1
14
        teq     %0, #0
15
        beq     3f
16
1:      strb    %0, [%2]
17
2:      ldrb    %0, [%2, #0x14]
18
        and     %0, %0, #0x60
19
        teq     %0, #0x60
20
        bne     2b
21
        teq     %0, #'\n'
22
        moveq   %0, #'\r'
23
        beq     1b
24
        ldrb    %0, [%1], #1
25
        teq     %0, #0
26
        bne     1b
27
3:      " : : "r" (0), "r" (s), "r" (0xf0000be0) : "cc");
28
}
29
 
30
/*
31
 * nothing to do
32
 */
33
#define arch_decomp_setup()

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.