Last change
on this file since 47 was
41,
checked in by alain, 14 years ago
|
Two modifications to better support multi-processors architectures :
1/ The _ioc_read() and _ioc_write() functions have been modified
to use the LL/SC instructions when trying to get the _ioc_busy lock.
This was mandatory to share the IOC controler between several processors.
2/ The _fb_read(), _fb_write(), and the _isr_dma have been modified to use
an array of 256 _dma_busy[pid] locks : Each processor must have its own DMA,
controller, as this array is indexed by the proc_id.
|
File size:
706 bytes
|
Rev | Line | |
---|
[13] | 1 | LD=mipsel-unknown-elf-ld |
---|
| 2 | CC=mipsel-unknown-elf-gcc |
---|
| 3 | AS=mipsel-unknown-elf-as |
---|
| 4 | DU=mipsel-unknown-elf-objdump |
---|
| 5 | |
---|
[41] | 6 | OBJS=reset.o \ |
---|
| 7 | giet.o \ |
---|
| 8 | stdio.o \ |
---|
| 9 | drivers.o \ |
---|
| 10 | main.o |
---|
[13] | 11 | |
---|
[41] | 12 | CFLAGS=-Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
[13] | 13 | |
---|
[41] | 14 | GIET?=../../giet |
---|
[13] | 15 | |
---|
| 16 | bin.soft: $(OBJS) ldscript |
---|
| 17 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
| 18 | $(DU) -D $@ > $@.txt |
---|
| 19 | |
---|
| 20 | reset.o: reset.s |
---|
| 21 | $(AS) -g -mips32 -o $@ $< |
---|
| 22 | giet.o: $(GIET)/giet.s |
---|
| 23 | $(AS) -g -mips32 -o $@ $< |
---|
| 24 | |
---|
| 25 | drivers.o: $(GIET)/drivers.c |
---|
| 26 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
[41] | 27 | $(DU) -D $@ > $@.txt |
---|
[13] | 28 | stdio.o: $(GIET)/stdio.c |
---|
| 29 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
[41] | 30 | $(DU) -D $@ > $@.txt |
---|
[13] | 31 | |
---|
| 32 | main.o: main.c |
---|
| 33 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
[41] | 34 | $(DU) -D $@ > $@.txt |
---|
[13] | 35 | |
---|
| 36 | clean: |
---|
| 37 | rm -f *.o bin.soft *.txt core *~ |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.