cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/fw/arc/promlib.c

Directory: arch/mips/fw/arc
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
 * Compatibility with board caches, Ulf Carlsson
 */
#include <linux/kernel.h>
#include <asm/sgialib.h>
#include <asm/bcache.h>

/*
 * IP22 boardcache is not compatible with board caches.  Thus we disable it
 * during romvec action.  Since r4xx0.c is always compiled and linked with your
 * kernel, this shouldn't cause any harm regardless what MIPS processor you
 * have.
 *
 * The ARC write and read functions seem to interfere with the serial lines
 * in some way. You should be careful with them.
 */


void prom_putchar(char c) { ULONG cnt; CHAR it = c; bc_disable(); ArcWrite(1, &it, 1, &cnt); bc_enable(); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle35100.00%1100.00%
Total35100.00%1100.00%


char prom_getchar(void) { ULONG cnt; CHAR c; bc_disable(); ArcRead(0, &c, 1, &cnt); bc_enable(); return c; }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle35100.00%1100.00%
Total35100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle8098.77%266.67%
Lucas De Marchi11.23%133.33%
Total81100.00%3100.00%
Directory: arch/mips/fw/arc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.