mirror of
git://projects.qi-hardware.com/iris.git
synced 2025-04-21 12:27:27 +03:00
more working
This commit is contained in:
@@ -138,6 +138,19 @@ static void tlb_reset (kMemory *mem, unsigned address, unsigned value):
|
||||
else:
|
||||
cp0_set (CP0_ENTRY_LO0, value)
|
||||
__asm__ volatile ("tlbwi")
|
||||
#if 0
|
||||
dbg_log ("tlb reset ")
|
||||
unsigned hi, lo0, lo1
|
||||
cp0_get (CP0_ENTRY_LO0, lo0)
|
||||
cp0_get (CP0_ENTRY_LO1, lo1)
|
||||
cp0_get (CP0_ENTRY_HI, hi)
|
||||
dbg_log_num (lo0)
|
||||
dbg_log (":")
|
||||
dbg_log_num (lo1)
|
||||
dbg_log (" for ")
|
||||
dbg_log_num (hi)
|
||||
dbg_log ("\n")
|
||||
#endif
|
||||
|
||||
static unsigned make_entry_lo (kPage *page):
|
||||
//dbg_log_line ()
|
||||
|
||||
@@ -84,13 +84,15 @@ kThread *tlb_refill ():
|
||||
cp0_set (CP0_ENTRY_LO0, t->entrylo[idx])
|
||||
cp0_set (CP0_ENTRY_LO1, t->entrylo[idx + 1])
|
||||
__asm__ volatile ("tlbwr")
|
||||
//dbg_log ("tlb refill ")
|
||||
//dbg_log_num (t->entrylo[idx])
|
||||
//dbg_log (":")
|
||||
//dbg_log_num (t->entrylo[idx + 1])
|
||||
//dbg_log (" for ")
|
||||
//dbg_log_num (EntryHi)
|
||||
//dbg_log ("\n")
|
||||
#if 0
|
||||
dbg_log ("tlb refill ")
|
||||
dbg_log_num (t->entrylo[idx])
|
||||
dbg_log (":")
|
||||
dbg_log_num (t->entrylo[idx + 1])
|
||||
dbg_log (" for ")
|
||||
dbg_log_num (EntryHi)
|
||||
dbg_log ("\n")
|
||||
#endif
|
||||
handle_exit ()
|
||||
return current
|
||||
|
||||
|
||||
@@ -29,14 +29,14 @@ arch_iris_sources = mips/interrupts.cc mips/arch.cc
|
||||
boot_sources = mips/init.cc mips/nanonote/board.cc
|
||||
arch_headers = mips/arch.hh mips/nanonote/jz4740.hh mips/nanonote/board.hh
|
||||
boot_threads = init udc
|
||||
programs = \#nanonote-gpio \#buzzer \#lcd
|
||||
programs = \#nanonote-gpio \#buzzer \#lcd metronome
|
||||
|
||||
all: test
|
||||
|
||||
test: iris.raw mips/nanonote/server/usb-server mips/nanonote/sdram-setup.raw $(addsuffix .elf,$(addprefix fs/,$(programs)))
|
||||
echo "reboot 0xa$(shell /bin/sh -c '$(OBJDUMP) -t iris.elf | grep __start$$ | cut -b2-8')" | nc localhost 5050
|
||||
|
||||
mips/nanonote/server/usb-server: mips/nanonote/server/usb-server.ccp mips/nanonote/server/Makefile.am mips/nanonote/server/configure.ac
|
||||
mips/nanonote/server/usb-server: mips/nanonote/server/usb-server.ccp mips/nanonote/server/Makefile.am mips/nanonote/server/configure.ac devices.hh
|
||||
$(MAKE) -C mips/nanonote/server
|
||||
echo "shutdown" | nc localhost 5050
|
||||
sleep 1
|
||||
@@ -60,7 +60,7 @@ $(addsuffix .elf,$(boot_threads)): TARGET_FLAGS = -I.
|
||||
$(addsuffix .elf,$(boot_threads)): LDFLAGS = -EL
|
||||
$(addprefix fs/,$(addsuffix .elf,$(programs))): LDFLAGS = -EL
|
||||
$(addprefix boot-programs/,$(addsuffix .cc,$(boot_threads))): devices.hh keys.hh
|
||||
source/lcd.o: source/charset.data
|
||||
source/\#lcd.o: source/charset.data
|
||||
|
||||
source/charset.data: source/charset
|
||||
$< > $@
|
||||
|
||||
Reference in New Issue
Block a user