URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/bootloaders/orpmon/cmds
- from Rev 175 to Rev 246
- ↔ Reverse comparison
Rev 175 → Rev 246
/load.c
3,7 → 3,7
#include "flash.h" |
#include "net.h" |
#include "uart.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
|
#ifndef MAX_IMAGES |
#define MAX_IMAGES 20 |
592,6 → 592,9
p1[i] = p2[i]; |
} |
|
// DC disable command in cpu.c |
extern int dc_disable_cmd(int argc, char *argv[]); |
|
int tboot_cmd (int argc, char *argv[]) |
{ |
int copied; |
612,8 → 615,14
break; |
} |
|
// global.src_addr = (unsigned long)0x0; |
|
// Disable data cache if present |
if (mfspr(SPR_SR) & SPR_SR_DCE) |
{ |
printf("Disabling data cache\n"); |
dc_disable_cmd(0, 0); |
} |
|
// Kick off copy |
copied =NetLoop(TFTP); |
if (copied <= 0) { |
printf("tboot: error while getting the image '%s'", tftp_filename); |
/eth.c
2,7 → 2,7
#include "uart.h" |
#include "eth.h" |
#include "support.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
#include "net.h" |
|
#if 1 |
/dhry.c
15,7 → 15,7
**************************************************************************** |
*/ |
#include "dhry.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
#include "common.h" |
#include "support.h" |
|
/cpu.c
1,6 → 1,6
#include "common.h" |
#include "support.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
|
int ic_enable_cmd (int argc, char *argv[]) |
{ |
62,11 → 62,22
|
int dc_disable_cmd (int argc, char *argv[]) |
{ |
unsigned long sr; |
|
if (argc) return -1; |
|
unsigned long sr = mfspr(SPR_SR); |
|
// If it's enabled and write back is on, we'd better flush it first |
// (CWS=1 is write back) |
|
unsigned long dccfgr = mfspr(SPR_DCCFGR); |
int i; |
int bs= (dccfgr & SPR_DCCFGR_CBS) ? 32 : 16; |
int ways = (1 << ((dccfgr & SPR_DCCFGR_NCS) >> 3)); |
for(i=0;i<ways;i++) |
mtspr(SPR_DCBFR, i*bs); |
|
/* Disable DC */ |
asm("l.mfspr %0,r0,%1": "=r" (sr) : "i" (SPR_SR)); |
sr &= ~SPR_SR_DCE; |
asm("l.mtspr r0,%0,%1": : "r" (sr), "i" (SPR_SR)); |
asm("l.nop"); |
/camera.c
1,6 → 1,6
#include "common.h" |
#include "support.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
|
/* Camera and CRT test. |
Draws gray cross across the screen, few color boxes at top left and moves around camera captured screen left/right |
/memory.c
1,6 → 1,6
#include "common.h" |
#include "support.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
#include "spincursor.h" |
|
void show_mem (int start, int stop) |