Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 333 → Rev 334

/SPARTAN/trunk/arch/mips/include/byteorder.h
29,7 → 29,6
#ifndef __mips_BYTEORDER_H__
#define __mips_BYTEORDER_H__
 
/* MIPS is little-endian */
#ifdef BIG_ENDIAN
static inline __u64 u64_le2host(__u64 n)
{
/SPARTAN/trunk/arch/amd64/_link.ld.in
48,11 → 48,8
LONG(unmapped_kdata_end - unmapped_kdata_start);
*(COMMON); /* global variables */
 
 
 
*(.eh_frame);
*(.bss); /* uninitialized static variables */
*(K_DATA_END);
 
symbol_table = .;
*(symtab.*); /* Symbol table, must be LAST symbol!*/
/SPARTAN/trunk/arch/ia32/_link.ld.in
24,6 → 24,7
unmapped_kdata_start = .;
*(K_DATA_START);
// LONG(0xdeadbeaf); /* TODO: remove 0xdeadbeaf */
unmapped_kdata_end = .;
}
34,9 → 35,9
ktext_end = .;
kdata_start = .;
*(.data); /* initialized data */
*(.rodata*); /* string literals */
*(COMMON); /* global variables */
*(.data); /* initialized data */
*(.rodata*); /* string literals */
*(COMMON); /* global variables */
hardcoded_load_address = .;
LONG(PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET));
hardcoded_ktext_size = .;
47,11 → 48,12
LONG(unmapped_ktext_end - unmapped_ktext_start);
hardcoded_unmapped_kdata_size = .;
LONG(unmapped_kdata_end - unmapped_kdata_start);
*(.bss); /* uninitialized static variables */
*(K_DATA_END);
*(.bss); /* uninitialized static variables */
*(.note.GNU-stack);
*(.comment);
 
symbol_table = .;
*(symtab.*); /* Symbol table, must be LAST symbol!*/
*(symtab.*); /* Symbol table, must be LAST symbol! */
 
kdata_end = .;
}
/SPARTAN/trunk/arch/ia32/src/pm.c
69,9 → 69,6
 
struct tss *tss_p = NULL;
 
/* TODO: Does not compile correctly if it does not exist ???? */
int __attribute__ ((section ("K_DATA_START"))) __fake;
 
/* gdtr is changed by kmp before next CPU is initialized */
struct ptr_16_32 protected_bootstrap_gdtr = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) };
struct ptr_16_32 gdtr = { .limit = sizeof(gdt), .base = (__address) gdt };
/SPARTAN/trunk/arch/ia32/src/acpi/madt.c
131,7 → 131,6
for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
madt_entries_index_cnt++;
}
printf("MADT: Found %d entries\n", madt_entries_index_cnt);
 
/* create madt apic entries index array */
madt_entries_index = (struct madt_apic_header * *) malloc(madt_entries_index_cnt * sizeof(struct madt_apic_header * *));
142,7 → 141,6
madt_entries_index[index++] = h;
}
 
 
/* Quicksort MADT index structure */
qsort(madt_entries_index, madt_entries_index_cnt, sizeof(__address), &madt_cmp);