Ignore:
Timestamp:
2006-07-14T11:39:02Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
08a7802f
Parents:
10b890b
Message:

Change hw_map() on sparc64 to use virtual addresses that are
beyond the end of physical memory. It is beneficial in two
ways: first, physical memory is no longer being wasted by
otherwise necessary calls to frame_alloc() and, second,
virtual addresses for devices are now correctly allocated
and do not overlap with the 4M TLB-locked mapping for
kernel text and data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/frame.h

    r10b890b rc6e314a  
    2727 */
    2828
    29  /** @addtogroup sparc64mm     
     29/** @addtogroup sparc64mm       
    3030 * @{
    3131 */
     
    4848        struct {
    4949                unsigned : 23;
    50                 uint64_t pfn : 28;         /**< Physical Frame Number. */
    51                 unsigned offset : 13;   /**< Offset. */
     50                uint64_t pfn : 28;      /**< Physical Frame Number. */
     51                unsigned offset : 13;   /**< Offset. */
    5252        } __attribute__ ((packed));
    5353};
     
    5555typedef union frame_address frame_address_t;
    5656
     57extern uintptr_t last_frame;
    5758extern void frame_arch_init(void);
    5859
     
    6263#endif
    6364
    64  /** @}
     65/** @}
    6566 */
    66 
Note: See TracChangeset for help on using the changeset viewer.