mirror of
git://projects.qi-hardware.com/iris.git
synced 2025-04-21 12:27:27 +03:00
make things work with unfinished new startup procedure
This commit is contained in:
@@ -137,14 +137,14 @@
|
||||
// Default lcd framebuffer mapping space.
|
||||
#define LCD_FRAMEBUFFER_BASE ((unsigned short *)0x00021000)
|
||||
|
||||
// Map IO memory (requires a priviledged Kernel::my_thread capability).
|
||||
// Map IO memory (requires a priviledged Iris::my_thread capability).
|
||||
#include <iris.hh>
|
||||
static void __map_io (unsigned physical, unsigned mapping):
|
||||
Kernel::Page p = Kernel::my_memory.create_page ()
|
||||
Iris::Page p = Iris::my_memory.create_page ()
|
||||
// false means not cachable; false means don't free when done.
|
||||
p.alloc_physical (physical, false, false)
|
||||
Kernel::my_memory.map (p, mapping)
|
||||
Kernel::free_cap (p)
|
||||
Iris::my_memory.map (p, mapping)
|
||||
Iris::free_cap (p)
|
||||
|
||||
#define map_harb() do { __map_io (HARB_PHYSICAL, HARB_BASE); } while (0)
|
||||
#define map_emc() do { __map_io (EMC_PHYSICAL, EMC_BASE); } while (0)
|
||||
@@ -2326,8 +2326,8 @@ static __inline__ void udelay (unsigned us):
|
||||
|
||||
#ifndef __KERNEL__
|
||||
static __inline__ void cdelay (unsigned ds):
|
||||
Kernel::my_receiver.set_alarm (ds * (HZ / 100))
|
||||
Kernel::Cap ().call (~0)
|
||||
Iris::my_receiver.set_alarm (ds * (HZ / 100))
|
||||
Iris::Cap ().call (~0)
|
||||
#endif
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user