Changeset edebc15c in mainline for kernel/arch/mips32/include
- Timestamp:
- 2008-07-27T03:50:53Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4541ae4
- Parents:
- 5e8ddf5
- Location:
- kernel/arch/mips32/include
- Files:
-
- 1 deleted
- 4 edited
-
drivers/arc.h (deleted)
-
drivers/msim.h (modified) (1 diff)
-
drivers/serial.h (modified) (2 diffs)
-
mm/as.h (modified) (1 diff)
-
mm/tlb.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/drivers/msim.h
r5e8ddf5 redebc15c 36 36 #define KERN_mips32_MSIM_H_ 37 37 38 /** Address of devices. */ 39 #define MSIM_VIDEORAM 0xB0000000 40 #define MSIM_KBD_ADDRESS 0xB0000000 41 #define MSIM_KBD_IRQ 2 42 38 43 #include <console/chardev.h> 39 44 -
kernel/arch/mips32/include/drivers/serial.h
r5e8ddf5 redebc15c 38 38 #include <console/chardev.h> 39 39 40 #define SERIAL_ADDRESS 0xB8000000 41 40 42 #define SERIAL_MAX 4 41 43 #define SERIAL_COM1 0x3f8 … … 44 46 #define SERIAL_COM2_IRQ 3 45 47 46 #define P_WRITEB(where, what) (*((volatile char *) (0xB8000000+where))=what)47 #define P_READB(where) (*((volatile char *)(0xB8000000+where)))48 #define P_WRITEB(where, what) (*((volatile char *) (SERIAL_ADDRESS + where)) = what) 49 #define P_READB(where) (*((volatile char *) (SERIAL_ADDRESS + where))) 48 50 49 #define SERIAL_READ(x) P_READB(x) 50 #define SERIAL_WRITE(x,c) P_WRITEB(x,c) 51 #define SERIAL_READ(x) P_READB(x) 52 #define SERIAL_WRITE(x, c) P_WRITEB(x, c) 53 51 54 /* Interrupt enable register */ 52 55 #define SERIAL_READ_IER(x) (P_READB((x) + 1)) 53 #define SERIAL_WRITE_IER(x,c) (P_WRITEB((x)+1,c)) 56 #define SERIAL_WRITE_IER(x,c) (P_WRITEB((x) + 1, c)) 57 54 58 /* Interrupt identification register */ 55 59 #define SERIAL_READ_IIR(x) (P_READB((x) + 2)) 60 56 61 /* Line status register */ 57 62 #define SERIAL_READ_LSR(x) (P_READB((x) + 5)) -
kernel/arch/mips32/include/mm/as.h
r5e8ddf5 redebc15c 39 39 40 40 #define KERNEL_ADDRESS_SPACE_START_ARCH (unsigned long) 0x80000000 41 #define KERNEL_ADDRESS_SPACE_END_ARCH (unsigned long) 0x ffffffff41 #define KERNEL_ADDRESS_SPACE_END_ARCH (unsigned long) 0x9fffffff 42 42 #define USER_ADDRESS_SPACE_START_ARCH (unsigned long) 0x00000000 43 43 #define USER_ADDRESS_SPACE_END_ARCH (unsigned long) 0x7fffffff -
kernel/arch/mips32/include/mm/tlb.h
r5e8ddf5 redebc15c 36 36 #define KERN_mips32_TLB_H_ 37 37 38 #include <arch/types.h> 39 #include <typedefs.h> 40 #include <arch/mm/asid.h> 38 41 #include <arch/exception.h> 39 42 … … 47 50 #define TLB_KSTACK_WIRED_INDEX 0 48 51 49 #define TLB_PAGE_MASK_16K (0x3 <<13)52 #define TLB_PAGE_MASK_16K (0x3 << 13) 50 53 51 54 #define PAGE_UNCACHED 2 … … 160 163 extern void tlb_refill(istate_t *istate); 161 164 extern void tlb_modified(istate_t *istate); 165 extern void tlb_prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn); 166 extern void tlb_prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr); 162 167 163 168 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
