USPatent applicationPatented

Method and apparatus for dependent segmentation and paging processing

Granted 9 Jul 2002 · no office action yet

Current assignee: ATI Technologies ULC · originally ATI International SRL

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Korbin Van Dyke, Paul Campbell · Examiner: B. James Peikari · AU 2186 · TC 2100

Application· this page
9473154
filed 28 Dec 1999
Publication
Not published
not published
Patent
US 6,418,524
granted 9 Jul 2002

Life of the application

6 dated events
⤢ drag to zoom20002002200420062008201020122014201620182020ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A method and apparatus for dependent segmentation and paging processing within a computer system include processing that begins by determining context of an operation supported by a native operating system. The context of an operation may correspond to performing an operation that is a native operating system operation or may be a legacy operating system operation. The processing then continues by setting within a corresponding segment descriptor a paging enable bit for a given segment that corresponds to the operation when the context of the operation corresponds to a legacy operating system. The setting of the paging enable bit is done in accordance with the processing of the native operating system. The processing then continues by processing the segment descriptor via segmentation processing in accordance with the legacy operating system to obtain a linear address. With the paging enable bitd, the linear address is processed to obtain a physical address.

Description

5 parts
›TECHNICAL FIELD OF THE INVENTION

This invention relates generally to computers and more particularly to addressing schemes utilizing segmentation and paging.

›BACKGROUND OF THE INVENTION

U.S. Pat. 4,972,338 issued to Crawford et. al. teaches memory management for a microprocessor system. In the microprocessor architecture an address translation unit is included which provides two levels of cache memory management. Segmentation registers and associated segmentation tables in main memory provide a first level of memory management which includes attributes bits for protection, priority, etc. A second page cache memory and associated page directory and page table and main memory provide a second level of management with independent protection on a page level.

To accommodate newer and/or more advanced architectures, a need exists for an addressing scheme that has a dependent relationship between segmentation and paging.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a schematic and graphical diagram of a computing system 10 in accordance with the present invention;

FIG. 2 illustrates a logic diagram of a method for dependent segmentation and paging processing in accordance with the present invention; and

FIG. 3 illustrates a table of the dependency between segmentation and paging processing in accordance with the present invention.

›DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT · 1 of 2

Generally, the present invention provides a method and apparatus for dependent segmentation and paging processing within a computer system. Such a method and apparatus include processing that begins by determining context of an operation supported by a native operating system. The context of an operation may correspond to performing an operation that is a native operating system operation or may be a legacy operating system operation. The processing then continues by setting within a corresponding segment descriptor a paging enable bit for a given segment that corresponds to the operation when the context of the operation corresponds to a legacy operating system (e.g., X86). The setting of the paging enable bit is done in accordance with the processing of the native operating system. The processing then continues by processing the segment descriptor via segmentation processing in accordance with the legacy instruction set architecture, which is used by the legacy operating system, to obtain a linear address. With the paging enabled, the linear address is processed to obtain a physical address. With such a method and apparatus a dependency exists between segmentation and paging to obtain addresses, thus providing an addressing technique for use by newer and/or more advanced microprocessor architectures.

The present invention can be more fully described with reference to FIGS. 1 through 3. FIG. 1 illustrates a schematic and graphical diagram of a computing system 10 . The computing system 10 includes a central processing unit 12 , a north bridge 14 and system memory 16 . Stored within the system memory 16 is a legacy operating system 18 (for example, X86, MIPS, etc.) and a native operating system 20 . The native operating system may be a custom operating system that corresponds to a particular central processing unit 12 . The central processing unit 12 , which includes a processing module and memory, further includes a paging module 24 and a plurality of segment descriptors 22 wherein at least one segment descriptor corresponds to a particular segment. The use of segments and paging as independent functions are known as described in U.S. Pat. No. 4,972,338.

The operating systems 18 and 20 function together to determine the appropriate physical addresses 26 for the corresponding operation, by generating, accessing, and/or updating a segment descriptor 22 . The segment descriptor includes a linear address and checks, which are generated by the legacy operating system 18 . In addition, the segment descriptors 22 are expanded to include a paging bit, which is controlled by the native operating system 20 . Hence, the segment descriptors now have a dependency between the paging function and the segmentation function.

Once a segment descriptor has been created, it needs to be loaded into the CPU 12 . The loading of the segment descriptor will vary depending on the context of an operation. For example, when the operation is a legacy context, the legacy descriptor load instruction is processed by the native operating system, which will having the paging bit enabled. As an alternate example, when the operation is a native context, the CPU segment descriptors are manipulated directly by the native operating system.

In operation, when the central processing unit 12 has a memory access request, it utilizes the segment descriptors 22 that have been loaded. The particular segment descriptor used will depend on the type of operation, which may be an individual operation (e.g., load, store, or instruction fetch). For instance, when the operation is an operation from the legacy instruction set, the segment descriptor that was loaded in accordance with the legacy descriptor load instruction.

When the paging bit is set by the native operating system 20 within the segment descriptor, a page enable/disable signal 34 is provided to the paging module 24 . The paging module 24 , which includes a plurality of translations built from page tables and page directories, utilizes the linear address to generate the corresponding physical addresses 26 when the page enable/disable signal 34 is enabled. When the page enable/disable signal 34 is disabled, the paging module 24 passes the linear address, which functions as the physical address 26 . The north bridge 14 interprets the physical addresses 26 to determine whether PCI addresses 28 are being generated, AGP addresses 30 are being generated or DRAM addresses 32 are being generated.

FIG. 2 illustrates a logic diagram of a method for dependent segmentation and paging processing that may be executed by the central processing unit 12 . The process begins at step 40 where the context of an operation supported by a native operating system is determined. The process then proceeds to step 42 where a determination is made as to whether the context of the operation corresponds to a legacy operating system or a native operating system. When the context corresponds to a legacy operating system, the process proceeds to step 44 . At step 44 , a paging enable bit for a given segment that corresponds to the operation is set in accordance with the native operating system. This is done within a corresponding segment descriptor. As such, segmentation and paging are now dependent and can be done on a segment by segment basis.

The process then proceeds to step 46 where the segment descriptor is processed via a segmentation process in accordance with the legacy operating system to obtain a linear address. The process then proceeds to step 48 where a determination is made as to whether the paging enable bit is set. If not, the process proceeds to step 50 where a one to one mapping of the linear address is used to obtain the physical address. This may be done by determining whether an application running on the legacy operating system has enabled paging. If it has not enabled paging, the linear address is processed via the paging process to obtain a physical address wherein the paging process includes mapping the linear address to the physical address and storing the mapping in a translation look aside table.

›DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT · 2 of 2

If the paging is enabled via the native operating system, the process proceeds to step 52 . At step 52 the linear address is processed via a legacy paging process to obtain the physical address. The legacy paging process includes determining whether an application running on the legacy operating system has enabled paging. When the application running on the legacy operating system has enabled paging, the linear address is processed via the paging process to obtain the physical address. Such a paging process includes generating a page table entry for the linear address, generating a page directory entry for the page table entry and utilizing the page table entry, the page table directory and a portion of the linear address to generate a translation look aside table entry for the physical address.

If, at step 42 , it was determined that the context of the operation corresponds to the native operating system, the process proceeds to step 54 . At step 54 , a determination is made as to whether the native application has enabled paging. If not, the process proceeds to step 56 where a paging enable bit is cleared (or a paging disable bit is set) within the corresponding segment descriptor for a given segment that corresponds to the operation.

If, however, the native application has enabled paging, the process proceeds to step 58 . At step 58 , the paging enable bit is set within the corresponding segment descriptor and utilizes native operating system page tables to execute the paging function.

FIG. 3 illustrates a table 60 that demonstrates the dependency of segmentation processing and paging processing. As illustrated, the table includes a context field, a legacy enabled paging field, a segment paging per native operating system field, a native paging enable field and a paging result field. As shown, when the context is in the legacy mode, the per segment paging in accordance with the native operation system is enabled such that the paging results of one to one mapping or legacy operating system page tables are used. When the context is in the native operating system, it is irrelevant what the legacy paging functions are and the native paging is enabled in accordance with the native paging selection.

The preceding discussion has presented a method and apparatus for dependent segmentation processing and paging processing to obtain addresses within a computing system. As one of average skill in the art would appreciate, other embodiments of the present invention may be derived based on the teachings presented herein without deviating from the scope of the claims.

Claims as granted

16 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

7 codes
IPC · International Patent Classification
Section A — Human necessities
  • A41D31/00
  • A61F13/15
Section D — Textiles; paper
  • D02G1/18
Section G — Physics
  • G06F12/10
USPC · US Patent Classification
711/208711/206713/100

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJan 2000Apr 2000Jul 2000Oct 2000Jan 2001Apr 2001Jul 2001Oct 2001Jan 2002Apr 2002Jul 2002USPTOApplicantNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
2.5 y
924 days filing → grant
Office actions
0
none on record
Examiner
B. James Peikari
art unit 2186 · TC 2100
Citations: 5 back · 5 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20002002200420062008201020122014201620182020Owner 1Owner 2
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock