Skip to content

Commit fb87e66

Browse files
authored
Improve comments (#32)
1 parent df3e5fc commit fb87e66

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/arch/arm64/vm-arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define ARM_PCI_MMIO_BASE (ARM_PCI_CFG_BASE + ARM_PCI_CFG_SIZE)
3939
#define ARM_PCI_MMIO_SIZE (RAM_BASE - ARM_PCI_MMIO_BASE)
4040

41-
/* 128 MB for iernel */
41+
/* 128 MB for kernel */
4242
#define ARM_KERNEL_BASE RAM_BASE
4343
#define ARM_KERNEL_SIZE 0x8000000UL
4444

src/arch/arm64/vm.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ int vm_arch_init_platform_device(vm_t *v)
130130
vm_arch_priv_t *priv = (vm_arch_priv_t *) v->priv;
131131

132132
/* Initial system bus */
133-
bus_init(&v->io_bus);
134-
bus_init(&v->mmio_bus);
135133
dev_init(&priv->iodev, ARM_IOPORT_BASE, ARM_IOPORT_SIZE, v, pio_handler);
136134
bus_register_dev(&v->mmio_bus, &priv->iodev);
137135

@@ -151,7 +149,7 @@ int vm_arch_init_platform_device(vm_t *v)
151149
}
152150

153151
/* The arm64 kernel header
154-
* Reference https://docs.kernel.org/arm64/booting.html
152+
* Reference https://docs.kernel.org/arch/arm64/booting.html
155153
*/
156154
typedef struct {
157155
uint32_t code0; /* Executable code */
@@ -358,7 +356,7 @@ static int generate_fdt(vm_t *v)
358356
__FDT(property, "dma-coherent", NULL, 0);
359357
uint32_t pci_bus_range[] = {cpu_to_fdt32(0), cpu_to_fdt32(0)};
360358
__FDT(property, "bus-range", &pci_bus_range, sizeof(pci_bus_range));
361-
/* reg should contains the address of configuration space */
359+
/* reg should contain the address of configuration space */
362360
uint64_t pci_reg[] = {cpu_to_fdt64(ARM_PCI_CFG_BASE),
363361
cpu_to_fdt64(ARM_PCI_CFG_SIZE)};
364362
__FDT(property, "reg", &pci_reg, sizeof(pci_reg));

src/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,5 @@ int main(int argc, char *argv[])
100100
vm_run(&vm);
101101
vm_exit(&vm);
102102

103-
reset_input_mode();
104-
105103
return 0;
106104
}

0 commit comments

Comments
 (0)