Changeset de96d3b in mainline for kernel/arch/ia32/src/ia32.c


Ignore:
Timestamp:
2024-01-03T16:54:15Z (4 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/simplify-dev-export
Children:
00e6288, 25e1490
Parents:
7130754
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-01 04:12:52)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-03 16:54:15)
Message:

On x86 CPUs supporting it, use write-combining memory mode for framebuffer

With this, kernel printouts are about three times faster in QEMU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ia32.c

    r7130754 rde96d3b  
    6161#include <arch/pm.h>
    6262#include <arch/vreg.h>
     63#include <arch/mm/pat.h>
    6364
    6465#ifdef CONFIG_SMP
     
    104105{
    105106        pm_init();
     107
     108        /* Use PCD+PWT bit combination in PTE to mean write-combining mode. */
     109        if (pat_supported())
     110                pat_set_mapping(false, true, true, PAT_TYPE_WRITE_COMBINING);
    106111
    107112        if (config.cpu_active == 1) {
Note: See TracChangeset for help on using the changeset viewer.