-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend_api.txt
More file actions
21 lines (16 loc) · 845 Bytes
/
Copy pathbackend_api.txt
File metadata and controls
21 lines (16 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Some functionality the different arch backends should support
+ cpu_id() - return the ID of the current process executing the code, with
regular indexing (0 - MAX_CPUS), that is.
+ map_vpage() - map one page according to the specs given.
+ stat_vpage() - get info about mapping at virtual address.
+ mod_vpage() - modify mapping at virtual address.
+ unmap_vpage() - unmap page at virtual address.
+ flush_tlb() - flush TLB cache for running cpu.
+ flush_tlb_all() - flush all TLC caches. (note, flush_tlb is allowed to just
call flush_tlb_all if the arch doesn't support per-cpu
flushing.)
+ flush_tlb_region() - ??? maybe?
+ enable_irq() - enable interrupts
+ disable_irq() - disable interrupts
+ probably more stuff, just not entirely sure what parts should go where yet.
+ the backend also has to define a memory layout, of course.