[커널 17차] 27주차
2021.03.15 21:26
2020년 3월 6일
linux version : mainline 5.9
init/main.c. start_kernel();
arm64_memblock_init() 진행중
- memblock_remove(max_t(u64, memstart_addr + linear_region_size, __pa_symbol(_end)), ULLONG_MAX);
if문 까지 진행
fixmap 과 대응하여 메모리 계산 및 vmemmap 계산
저녁 시간
이론 분석
http://jake.dothome.co.kr/cache4/
Cache
cache - barrier
http://jake.dothome.co.kr/barriers/
참고 자료
http://jake.dothome.co.kr/fixmap/
http://cloudrain21.com/about-memory-barrier
https://linux.die.net/man/3/pthread_barrier_init
https://stackoverflow.com/questions/14950614/working-of-asm-volatile-memory
(These ARM and 32-bit Thumb instructions are available in ARMv7.)
DSB SY 옵션 생략 가능
- Full system DSB operation. This is the default and can be omitted.
https://developer.arm.com/documentation/dui0801/k/A64-General-Instructions/DSB?lang=en
(armv8)
DSB SY 옵션 생략 불가능
- Full system is the required shareability domain, reads and writes are the required access types in both Group A and Group B. This option is referred to as the full system DMB.
Arm reference manual (f.c version)
C6.2.82 DSB
crm 필드 확인
asm volatile("dsb #0" ::: "memory");
All other encodings of CRm, other than the values 0b0000 and 0b0100, that are not listed above are
reserved, and can be encoded using the #<imm> syntax. All unsupported and reserved options must
execute as a full system barrier operation, but software must not rely on this behavior.
지원하지 않는 옵션은 SY로 동작함.
자료
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | [공지] 스터디 정리 노트 공간입니다. | woos | 2016.05.14 | 627 |
68 | [커널 17차] 41주차 | ㅇㅇㅇ | 2021.06.13 | 36544 |
67 | [커널 18차] 3주차 | V4bel | 2021.06.12 | 103 |
66 | [커널 17차] 40주차 | ㅇㅇㅇ | 2021.06.05 | 283 |
65 | [커널 18차] 2주차 | V4bel | 2021.06.05 | 271 |
64 | [커널 17차] 39주차 | ㅇㅇㅇ | 2021.05.29 | 184 |
63 | [커널 18차] 1주차 | V4bel | 2021.05.29 | 3599 |
62 | [커널 17차] 38주차 | ㅇㅇㅇ | 2021.05.23 | 366 |
61 | [커널 17차] 37주차 | ㅇㅇㅇ | 2021.05.16 | 97 |
60 | [커널 17차] 36주차 [2] | ㅇㅇㅇ | 2021.05.09 | 133 |
59 | [커널 17차] 35주차 | ㅇㅇㅇ | 2021.05.05 | 85 |
58 | [커널 17차] 34주차 | ㅇㅇㅇ | 2021.04.25 | 99 |
57 | [커널 17차] 33주차 | ㅇㅇㅇ | 2021.04.18 | 195 |
56 | [커널 17차] 32주차 | ㅇㅇㅇ | 2021.04.11 | 443 |
55 | [커널 17차] 31주차 [2] | ㅇㅇㅇ | 2021.04.04 | 158 |
54 | [커널 17차] 30주차 [1] | 주영 | 2021.03.30 | 203 |
53 | [커널 17차] 29주차 | ㅇㅇㅇ | 2021.03.26 | 103 |
» | [커널 17차] 27주차 | 주영 | 2021.03.15 | 276 |
51 | [커널 17차] 27주차 | 주영 | 2021.03.08 | 172 |
50 | [커널 17차] 26주차 | 주영 | 2021.03.01 | 539 |
49 | [커널 17차] 25주차 | 주영 | 2021.02.23 | 91 |
.