Diff for ''
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| {{Smazat}} | # Počítačová laboratoř LABTF MFF |
| Line 3: | Line 3: |
| void example (void *data) |
### Stránky počítačové laboratoře LABTF MFF [LABTF MFF stránky](https://www.mff.cuni.cz/cs/vnitrni-zalezitosti/it-a-sluzby/pocitacove-laboratore/labtf) |
| Line 6: | Line 6: |
| { | ------ |
| Line 8: | Line 8: |
| print("entering EXAMPLE\n"); //frame_init(); |
### Letáček počítačové laboratoře LABTF MFF  |
| Line 11: | Line 11: |
| print("--------------------"); frame_alloc(4, VF_AT_KUSEG); print("--------------------"); print("Power down at the end;\n"); } //////////////////////////////////////////////////////////////// void *frame_alloc(unsigned int cnt, unsigned int flags) { if (VF_ADDR_TYPE(flags) <2)c printk("addres space kseg0 or kseg1\n"); if (VF_ADDR_TYPE(flags) >1) printk("kseg2 ksseg3 kuuseg\n"); return 0; } ////////////////////////////////////// na vystupu je printk("addres space kseg0 or kseg1\n"); |