Changeset edebc15c in mainline for kernel/arch/mips32/include


Ignore:
Timestamp:
2008-07-27T03:50:53Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4541ae4
Parents:
5e8ddf5
Message:

physical memory detection in MSIM (discontinous regions supported)
remove Sgi Indy (ARC) support — it was unmaintaned, untested for years and without uspace support

Location:
kernel/arch/mips32/include
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/drivers/msim.h

    r5e8ddf5 redebc15c  
    3636#define KERN_mips32_MSIM_H_
    3737
     38/** Address of devices. */
     39#define MSIM_VIDEORAM           0xB0000000
     40#define MSIM_KBD_ADDRESS        0xB0000000
     41#define MSIM_KBD_IRQ            2
     42
    3843#include <console/chardev.h>
    3944
  • kernel/arch/mips32/include/drivers/serial.h

    r5e8ddf5 redebc15c  
    3838#include <console/chardev.h>
    3939
     40#define SERIAL_ADDRESS    0xB8000000
     41
    4042#define SERIAL_MAX        4
    4143#define SERIAL_COM1       0x3f8
     
    4446#define SERIAL_COM2_IRQ   3
    4547
    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)))
    4850
    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
    5154/* Interrupt enable register */
    5255#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
    5458/* Interrupt identification register */
    5559#define SERIAL_READ_IIR(x)             (P_READB((x) + 2))
     60
    5661/* Line status register */
    5762#define SERIAL_READ_LSR(x)             (P_READB((x) + 5))
  • kernel/arch/mips32/include/mm/as.h

    r5e8ddf5 redebc15c  
    3939
    4040#define KERNEL_ADDRESS_SPACE_START_ARCH         (unsigned long) 0x80000000
    41 #define KERNEL_ADDRESS_SPACE_END_ARCH           (unsigned long) 0xffffffff
     41#define KERNEL_ADDRESS_SPACE_END_ARCH           (unsigned long) 0x9fffffff
    4242#define USER_ADDRESS_SPACE_START_ARCH           (unsigned long) 0x00000000
    4343#define USER_ADDRESS_SPACE_END_ARCH             (unsigned long) 0x7fffffff
  • kernel/arch/mips32/include/mm/tlb.h

    r5e8ddf5 redebc15c  
    3636#define KERN_mips32_TLB_H_
    3737
     38#include <arch/types.h>
     39#include <typedefs.h>
     40#include <arch/mm/asid.h>
    3841#include <arch/exception.h>
    3942
     
    4750#define TLB_KSTACK_WIRED_INDEX  0
    4851
    49 #define TLB_PAGE_MASK_16K       (0x3<<13)
     52#define TLB_PAGE_MASK_16K       (0x3 << 13)
    5053
    5154#define PAGE_UNCACHED                   2
     
    160163extern void tlb_refill(istate_t *istate);
    161164extern void tlb_modified(istate_t *istate);
     165extern void tlb_prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn);
     166extern void tlb_prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr);
    162167
    163168#endif
Note: See TracChangeset for help on using the changeset viewer.