summaryrefslogtreecommitdiffstats
path: root/qemu/roms/SLOF/slof/ppc64.c
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/SLOF/slof/ppc64.c
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/SLOF/slof/ppc64.c')
-rw-r--r--qemu/roms/SLOF/slof/ppc64.c93
1 files changed, 0 insertions, 93 deletions
diff --git a/qemu/roms/SLOF/slof/ppc64.c b/qemu/roms/SLOF/slof/ppc64.c
deleted file mode 100644
index 619d95ec7..000000000
--- a/qemu/roms/SLOF/slof/ppc64.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2004, 2008 IBM Corporation
- * All rights reserved.
- * This program and the accompanying materials
- * are made available under the terms of the BSD License
- * which accompanies this distribution, and is available at
- * http://www.opensource.org/licenses/bsd-license.php
- *
- * Contributors:
- * IBM Corporation - initial implementation
- *****************************************************************************/
-
-#include <cpu.h>
-
-/* the exception frame should be page aligned
- * the_exception_frame is used by the handler to store a copy of all
- * registers after an exception; this copy can then be used by paflof's
- * exception handler to printout a register dump */
-cell the_exception_frame[0x400 / CELLSIZE] __attribute__ ((aligned(PAGE_SIZE)));;
-
-/* the_client_frame is the register save area when starting a client */
-cell the_client_frame[0x1000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-cell the_client_stack[0x8000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-/* THE forth stack */
-cell the_data_stack[0x2000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-/* the forth return stack */
-cell the_return_stack[0x2000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-
-/* forth stack and return-stack pointers */
-cell *restrict dp;
-cell *restrict rp;
-
-/* terminal input buffer */
-cell the_tib[0x1000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-/* temporary string buffers */
-char the_pockets[NUMPOCKETS * POCKETSIZE] __attribute__ ((aligned(0x100)));
-
-cell the_comp_buffer[0x1000 / CELLSIZE] __attribute__ ((aligned(0x100)));
-
-cell the_heap[HEAP_SIZE / CELLSIZE] __attribute__ ((aligned(0x1000)));
-cell *the_heap_start = &the_heap[0];
-cell *the_heap_end = &the_heap[HEAP_SIZE / CELLSIZE];
-
-extern void io_putchar(unsigned char);
-extern unsigned long call_c(cell arg0, cell arg1, cell arg2, cell entry);
-
-
-long
-writeLogByte_wrapper(long x, long y)
-{
- unsigned long result;
-
- SET_CI;
- result = writeLogByte(x, y);
- CLR_CI;
-
- return result;
-}
-
-
-/**
- * Standard write function for the libc.
- *
- * @param fd file descriptor (should always be 1 or 2)
- * @param buf pointer to the array with the output characters
- * @param count number of bytes to be written
- * @return the number of bytes that have been written successfully
- */
-int
-write(int fd, const void *buf, int count)
-{
- int i;
- char *ptr = (char *)buf;
-
- if (fd != 1 && fd != 2)
- return 0;
-
- for (i = 0; i < count; i++) {
- if (*ptr == '\n')
- io_putchar('\r');
- io_putchar(*ptr++);
- }
-
- return i;
-}
-
-/* This should probably be temporary until a better solution is found */
-void
-asm_cout(long Character, long UART, long NVRAM __attribute__((unused)))
-{
- if (UART)
- io_putchar(Character);
-}