kernel: reduce log message spam during boot
This commit is contained in:
@@ -84,7 +84,6 @@ kern_status_t local_apic_enable(void)
|
||||
lapic.write(0xF0, 0x1FF);
|
||||
lapic.ack();
|
||||
|
||||
printk("acpi: enabled local APIC on core %u", this_cpu());
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
@@ -101,7 +100,7 @@ static io_apic *get_ioapic_for_irq(unsigned int vec)
|
||||
|
||||
static void configure_legacy_pic(void)
|
||||
{
|
||||
printk("acpi: APIC unavailable, using 8259 PIC");
|
||||
printk("acpi: APIC unavailable");
|
||||
pit_start(10);
|
||||
}
|
||||
|
||||
@@ -110,7 +109,7 @@ static void ioapic_init(uintptr_t base, unsigned int int_base)
|
||||
uint32_t *base_vaddr = (uint32_t *)vm_phys_to_virt(base);
|
||||
io_apic *apic = kmalloc_object(io_apic, VM_NORMAL, base_vaddr, int_base);
|
||||
|
||||
printk("acpi: I/O APIC at 0x%llx; base=%u, irqs=%u", base, int_base, apic->io_nr_irq);
|
||||
//printk("acpi: I/O APIC at 0x%llx; base=%u, irqs=%u", base, int_base, apic->io_nr_irq);
|
||||
|
||||
for (unsigned int i = 0; i < apic->io_nr_irq; i++) {
|
||||
apic->map_irq(i, 32 + int_base + i);
|
||||
@@ -134,7 +133,6 @@ void local_apic_config_timer(void)
|
||||
uint32_t total_ticks = 0xFFFFFFFF - lapic.read(local_apic::TIMER_CURCOUNT);
|
||||
|
||||
total_ticks /= 100;
|
||||
printk("total_ticks=%u", total_ticks);
|
||||
|
||||
lapic.write(local_apic::LVT_TIMER, IRQ0 | APIC_LVT_TIMER_MODE_PERIODIC);
|
||||
lapic.write(local_apic::TIMER_DIV, 0x3);
|
||||
@@ -154,7 +152,6 @@ static void parse_legacy_irq_override(struct acpi_madt *madt)
|
||||
switch (rec->r_type) {
|
||||
case ACPI_MADT_IRQSRC_OVERRIDE:
|
||||
irq = (struct acpi_madt_irqsrc_override *)(rec + 1);
|
||||
printk("acpi: irq src=%u, dest=%u", irq->irq_srcvec, irq->irq_destvec);
|
||||
handler = get_ioapic_for_irq(irq->irq_srcvec);
|
||||
handler->map_irq(irq->irq_srcvec, 32 + irq->irq_destvec);
|
||||
break;
|
||||
@@ -220,7 +217,6 @@ kern_status_t apic_init(void)
|
||||
pit_start(1000);
|
||||
local_apic_config_timer();
|
||||
|
||||
printk("acpi: all APIC online");
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -262,7 +262,6 @@ void pmap_bootstrap(void)
|
||||
}
|
||||
}
|
||||
|
||||
printk("pmap: initialising direct physical memory mappings");
|
||||
vbase = VM_PAGEMAP_BASE;
|
||||
for (size_t i = 0; i < pmem_limit; i += hugepage_sz) {
|
||||
do_pmap_add(kernel_pmap,
|
||||
@@ -272,7 +271,6 @@ void pmap_bootstrap(void)
|
||||
}
|
||||
|
||||
pmap_switch(kernel_pmap);
|
||||
printk("pmap: kernel pmap initialised (0x%llx)", kernel_pmap);
|
||||
}
|
||||
|
||||
pmap_t pmap_create(void)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include <socks/object.h>
|
||||
#include <socks/printk.h>
|
||||
|
||||
static object_namespace_t *global_ns;
|
||||
|
||||
@@ -42,7 +41,6 @@ void init_global_namespace(void)
|
||||
{
|
||||
object_type_register(&ns_type);
|
||||
global_ns = object_namespace_create();
|
||||
printk("obj: initialised global namespace");
|
||||
}
|
||||
|
||||
object_namespace_t *global_namespace(void)
|
||||
|
||||
@@ -33,6 +33,5 @@ kern_status_t sched_init(void)
|
||||
this_cpu->c_current_thread = this_thread;
|
||||
put_cpu(this_cpu);
|
||||
|
||||
printk("sched: initialised");
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ kern_status_t vm_bootstrap(const vm_zone_descriptor_t *zones, size_t nr_zones)
|
||||
|
||||
/* we're only worrying about UMA systems for now */
|
||||
node_data = memblock_alloc(sizeof(vm_pg_data_t) * numa_count, 8);
|
||||
printk("vm: initialising %u node%s", numa_count, numa_count > 1 ? "s" : "");
|
||||
|
||||
/* TODO select which memory model to use automatically, and add
|
||||
a kernel boot parameter to override the choice */
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <socks/memblock.h>
|
||||
#include <socks/vm.h>
|
||||
#include <socks/util.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/libc/string.h>
|
||||
|
||||
#define SIZE_N_CACHE(s) \
|
||||
@@ -39,7 +38,6 @@ void kmalloc_init(void)
|
||||
}
|
||||
|
||||
kmalloc_initialised = 1;
|
||||
printk("vm: kmalloc size-N caches online");
|
||||
}
|
||||
|
||||
void *kmalloc(size_t count, vm_flags_t flags)
|
||||
|
||||
@@ -146,8 +146,6 @@ static void calculate_sector_size_and_count(size_t pmem_size, size_t reserved_si
|
||||
|
||||
void vm_sparse_init(void)
|
||||
{
|
||||
printk("vm: using sparse memory model");
|
||||
|
||||
size_t pmem_size = 0, reserved_size = 0;
|
||||
|
||||
memblock_iter_t it;
|
||||
@@ -213,7 +211,7 @@ void vm_sparse_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
printk("vm: initialised %zu sectors of size %s", nr_sectors, sector_size_str);
|
||||
printk("vm: [sparse] initialised %zu sectors of size %s", nr_sectors, sector_size_str);
|
||||
}
|
||||
|
||||
vm_page_t *vm_page_get_sparse(phys_addr_t addr)
|
||||
|
||||
@@ -159,7 +159,7 @@ void vm_zone_init(vm_zone_t *z, const vm_zone_descriptor_t *zone_info)
|
||||
char free_bytes_str[64];
|
||||
data_size_to_string(free_bytes, free_bytes_str, sizeof free_bytes_str);
|
||||
|
||||
printk("vm: node %u/zone %s: %s of memory online.", z->z_info.zd_node, z->z_info.zd_name, free_bytes_str);
|
||||
printk("vm: zone %u/%s: %s of memory online.", z->z_info.zd_node, z->z_info.zd_name, free_bytes_str);
|
||||
}
|
||||
|
||||
static int replenish_free_page_list(vm_zone_t *z, vm_page_order_t order)
|
||||
|
||||
Reference in New Issue
Block a user