Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`PageTableEntry::addr` needs a `is_level_1_entry` arg

Aperta
#613 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start at the PageTableEntry::addr entry point and trace the functions that call it, since the issue says they also need the is_level_1_entry flag. Check how PAT support from pull request 548 affects address masking and verify that huge-page addresses mask the potential PAT bit while 4KiB-page addresses remain correct. Done means the flag is propagated through all affected callers and addr returns the correct address for both cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

We need to mask off a potential PAT bit at position 12 in the addr method, but only if this is a huge page. Otherwise the address is incorrect. Unfortunately we cannot find out whether an entry is mapping a huge page because the huge page bit is reused as PAT bit for 4KiB pages. So we need an additional is_level_1_entry argument for addr to decide this.

Unfortunately there are a lot of functions that call addr, so these will need a is_level_1_entry flag too...

PAT support was introduced in https://github.com/rust-osdev/x86_64/pull/548

Lingua principale
Rust
Stelle
940
Fork
160
Merge medio
22h 31m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-osdev/x86_64

Tutte le issue di rust-osdev/x86_64

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.