지난일들/SPARC

context number 확인하기

바위맨 2014. 2. 26. 15:51
반응형

Antfarm 3.2 SPARC Virtual Memory Architecture 부분 참고

Sparc의 TLB관리 정책

  • sparc은 x86과는 다르게 software를 통해서 TLB를 관리하게 된다.
  • system software는 H/W TLB를 통해서 명시적 가상 주소 공간을 통해서 실행된다.
  • memory reference는 TLB가 translation을 통해서 만들어지는데 이때 TLB entry를 포함하지 않는다.
    (When a memory reference is made for which no TLB entry contains a translation)
  • exception이 발생하게 되면 OS에서는 적절한 Translation을 실행할 기회를 얻게 되며, CPU는 OS에서 가지고 있는 page table의 구조를 알 수없다.
  • process context switch에서 TLB 전체의 flush를 막기 위해서 sparc에서는 TLB entry에 tag를 추가할 수 있고 이것을 context ID라고 한다. 이 context id는 특정 virtual address와 연관을 가지게 된다.

Process Identification

  • ASID(address space identifier)를 통해서 process의 creation, destruction, context switch를 알수 있다.
  • x86: CR3 register를 통해서 detection
    CR3 register write명령은 privileged register를 사용하기 때문에 VMM에서 알 수 있다.

반응형

'지난일들 > SPARC' 카테고리의 다른 글

ULTRA sparc - Context ID  (0) 2014.03.04
address space Identifiers and address space  (0) 2014.02.26
SPARC 메모리 구조 - context  (0) 2013.08.29