Changeset 97f1691 in mainline for arch/sparc64/include


Ignore:
Timestamp:
2006-02-28T00:02:39Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d6ec87
Parents:
d87c3f3
Message:

sparc64 work.
Fix KBD_VIRT_ADDRESS.
Call before_thread_runs() prior to the switch to the thread's stack. Add comment why this is crucial.
Add after_thread_ran() to the scheduler.
Add before_thread_runs_arch() and after_thread_ran_arch() for sparc64, mapping/demapping thread's kernel stack.
Add dummy after_thread_ran_arch() to all other architectures.
Add dtlb_insert_mapping() to promote code reuse.

Location:
arch/sparc64/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/drivers/i8042.h

    rd87c3f3 r97f1691  
    3333
    3434#define KBD_PHYS_ADDRESS        0x1fff8904000ULL
    35 #define KBD_VIRT_ADDRESS        0x00000d00000ULL
     35#define KBD_VIRT_ADDRESS        0x000d0000000ULL
    3636
    3737#define STATUS_REG      4
     
    4141static inline void i8042_data_write(__u8 data)
    4242{
    43         ((__u8 *)(KBD_VIRT_ADDRESS))[DATA_REG] = data;
     43        ((volatile __u8 *)(KBD_VIRT_ADDRESS))[DATA_REG] = data;
    4444}
    4545
     
    5656static inline void i8042_command_write(__u8 command)
    5757{
    58         ((__u8 *)(KBD_VIRT_ADDRESS))[COMMAND_REG] = command;
     58        ((volatile __u8 *)(KBD_VIRT_ADDRESS))[COMMAND_REG] = command;
    5959}
    6060
  • arch/sparc64/include/mm/tlb.h

    rd87c3f3 r97f1691  
    406406extern void fast_data_access_protection(void);
    407407
     408extern void dtlb_insert_mapping(__address page, __address frame, int pagesize, bool locked, bool cacheable);
     409
    408410#endif
  • arch/sparc64/include/trap/exception.h

    rd87c3f3 r97f1691  
    3232#define TT_INSTRUCTION_ACCESS_EXCEPTION         0x08
    3333#define TT_ILLEGAL_INSTRUCTION                  0x10
     34#define TT_DATA_ACCESS_ERROR                    0x32
    3435#define TT_MEM_ADDRESS_NOT_ALIGNED              0x34
    3536
     
    3738extern void do_instruction_access_exc(void);
    3839extern void do_mem_address_not_aligned(void);
     40extern void do_data_access_error(void);
    3941extern void do_illegal_instruction(void);
    4042#endif /* !__ASM__ */
Note: See TracChangeset for help on using the changeset viewer.