URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 580 to Rev 581
- ↔ Reverse comparison
Rev 580 → Rev 581
/trunk/uclinux/uClinux-2.0.x/README.or32
1,7 → 1,7
This is uClinux for or32. |
|
To build type: |
|
set to 1 MC_INIT define in include/asm-or1k/board.h if you are using memory controller |
make oldconfig |
make dep |
make linux.bin |
/trunk/uclinux/uClinux-2.0.x/sim.cfg
110,15 → 110,17
size = 0x00800000 |
delayr = 1 |
delayw = 2 |
log = "ram.log" |
enddevice |
|
device 1 |
name = "FLASH" |
ce = 1 |
baseaddr = 0x40000000 |
baseaddr = 0x04000000 |
size = 0x00200000 |
delayr = 10 |
delayw = -1 |
log = "flash.log" |
enddevice |
end |
|
448,7 → 450,7
nuarts = 1 |
|
device 0 |
baseaddr = 0x80000000 |
baseaddr = 0x9c000000 |
irq = 2 |
rxfile = "/tmp/uart0.rx" |
txfile = "/tmp/uart0.tx" |
/trunk/uclinux/uClinux-2.0.x/arch/or1k/board/config.c
28,19 → 28,17
extern void register_console(void (*proc)(const char *)); |
|
/* Tick timer period */ |
unsigned long tick_period = 0x1000; |
unsigned long tick_period = SYS_TICK_PER; |
|
void BSP_sched_init(void (*timer_routine)(int, void *, struct pt_regs *)) |
{ |
request_irq(IRQ_SCHED_TIMER, timer_routine, IRQ_FLG_LOCK | IRQ_FLG_PRI_HI, "timer", NULL); |
|
/* Set counter period, enable timer and interrupt */ |
mtspr(SPR_TTMR, SPR_TTMR_IE | SPR_TTMR_SR | (0x1000 & SPR_TTMR_PERIOD)); |
mtspr(SPR_TTMR, SPR_TTMR_IE | SPR_TTMR_RT | (SYS_TICK_PER & SPR_TTMR_PERIOD)); |
} |
|
void BSP_tick(void) |
{ |
/* Nothig to be done here */ |
mtspr(SPR_TTMR, SPR_TTMR_IE | SPR_TTMR_RT | (SYS_TICK_PER & SPR_TTMR_PERIOD)); |
} |
|
unsigned long BSP_gettimeoffset (void) |
93,8 → 91,6
register_console(console_print_or32); |
#endif |
|
printk("\nOpenRisc 1000 support (C) www.opencores.org\n"); |
|
mach_sched_init = BSP_sched_init; |
mach_tick = BSP_tick; |
mach_gettimeoffset = BSP_gettimeoffset; |
/trunk/uclinux/uClinux-2.0.x/Makefile
96,7 → 96,7
# |
|
|
CFLAGS = -Wall -Wstrict-prototypes -Werror-implicit-function-declaration -fomit-frame-pointer -fno-strength-reduce -O2 -DDEBUG |
CFLAGS = -Wall -Wstrict-prototypes -Werror-implicit-function-declaration -fomit-frame-pointer -fno-strength-reduce -O2 -g |
# CFLAGS = -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -O2 -DDEBUG |
|
ifdef CONFIG_CPP |