Changeset ,94

Show
Ignore:
Timestamp:
10/26/2008 09:38:29 AM (2 months ago)
Author:
Berkus <berkus@madfire.net>
branch-nick:
bzr
Message:

Ongoing switch to system style. Added coding guidelines.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apply_boilerplate.rb

    r93 r94  
    55# Distributed under the Boost Software License, Version 1.0. 
    66# (See file LICENSE_1_0.txt or a copy at http:#www.boost.org/LICENSE_1_0.txt) 
     7# 
    78# 
    89# Apply license and modeline changes to text source files. 
     
    1920    '.rb'=>[license.gsub("//","#"), modelines.gsub("//","#")] 
    2021} 
     22 
     23ok_count = 0 
     24modified_count = 0 
    2125 
    2226Find.find('./') do |f| 
     
    4448            end 
    4549            puts "#{f} updated" 
     50            modified_count += 1 
    4651        else 
    4752            puts "#{f} is ok" 
     53            ok_count += 1 
    4854        end 
    4955    end 
    5056end 
    5157 
     58puts "#{modified_count} files changed, #{ok_count} files ok." 
     59 
    5260# kate: indent-width 4; replace-tabs on; 
    5361# vi:set ts=4:set expandtab=on: 
  • vesper/src/ELF.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/* 
    88 *  ELF file format structures definitions 
    9  *  According to Portable Formats Specification, version 1.1 (FIXME: update to 1.2) 
     9 *  According to Portable Formats Specification, version 1.1 
     10 *  (FIXME: update to 1.2) 
    1011 * 
    1112 *  Typed in by Stanislav Karchebny <berkus+os@madfire.net>, 2001 
  • vesper/src/ElfParser.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#include "Kernel.h" 
     
    99#include "DefaultConsole.h" 
    1010 
    11 ElfParser::ElfParser() 
     11elf_parser::elf_parser() 
    1212{ 
    1313        header             = NULL; 
     
    1919} 
    2020 
    21 ElfParser::~ElfParser() 
     21elf_parser::~elf_parser() 
    2222{ 
    2323        delete header; 
     
    2626} 
    2727 
    28 void ElfParser::loadKernel(Elf32SectionHeader *symtab, Elf32SectionHeader *strtab) 
     28void elf_parser::loadKernel(Elf32SectionHeader* symtab, 
     29                            Elf32SectionHeader* strtab) 
    2930{ 
    3031        symbolTable = symtab; 
     
    3233} 
    3334 
    34 char* ElfParser::findSymbol(address_t addr, address_t *symbolStart) 
     35char* elf_parser::findSymbol(address_t addr, address_t *symbolStart) 
    3536{ 
    3637        address_t max = 0; 
     
    7677        return NULL; 
    7778} 
     79 
    7880// kate: indent-width 4; replace-tabs on; 
    7981// vi:set ts=4:set expandtab=on: 
  • vesper/src/ElfParser.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    1111 
    1212/** 
    13  * Parses an ELF file, generating symbolic information and loading code/data segments. 
     13 * Parses an ELF file, generating symbolic information and loading code/data 
     14 * segments. 
    1415 */ 
    15 class ElfParser 
     16class elf_parser 
    1617{ 
    17        public: 
    18                /** 
    19                 *Creates a blank ELF parser, preparing for a call to loadKernel. 
    20                 */ 
    21                ElfParser(); 
     18public: 
     19    /** 
     20     * Creates a blank ELF parser, preparing for a call to loadKernel. 
     21    */ 
     22    elf_parser(); 
    2223 
    23                 /** 
    24                  * Creates the ELF parser based on a file. 
    25                  */ 
    26                 ElfParser(char *fname); 
     24    /** 
     25     * Creates the ELF parser based on a file. 
     26     */ 
     27    elf_parser(const char *fname); 
     28    ~elf_parser(); 
    2729 
    28                 ~ElfParser(); 
     30    /** 
     31     * Duplicates (this), performing a deep copy. 
     32     */ 
     33    elf_parser *clone(); 
    2934 
    30                /** 
    31                 * Duplicates (this), performing a deep copy
    32                 */ 
    33                ElfParser *clone(); 
     35    /** 
     36     * Writes all section information to the virtual memory image
     37    */ 
     38    void writeAllSections(); 
    3439 
    35   /** 
    36   Writes all section information to the virtual memory image
    37   **/ 
    38   void writeAllSections(); 
     40    /** 
     41     * Returns the address of the last byte to be loaded in
     42     */ 
     43    address_t getLastAddress(); 
    3944 
    40   /** 
    41   Returns the address of the last byte to be loaded in. 
    42   **/ 
    43   address_t getLastAddress(); 
     45    /** 
     46     * Loads the symbol table for the kernel from the specified location. 
     47     */ 
     48    void loadKernel(Elf32SectionHeader *symtab, Elf32SectionHeader *strtab); 
    4449 
    45   /** 
    46   Loads the symbol table for the kernel from the specified location. 
    47   **/ 
    48   void loadKernel(Elf32SectionHeader *symtab, Elf32SectionHeader *strtab); 
     50    /** 
     51     * Returns the symbol name for an address. Also returns the start address 
     52     * of that symbol in startAddr if startAddr != NULL. 
     53     */ 
     54    char* findSymbol(address_t addr, address_t *symbolStart = NULL); 
    4955 
    50   /** 
    51   Returns the symbol name for an address. Also returns the start address 
    52   of that symbol in startAddr if startAddr != NULL. 
    53   **/ 
    54   char* findSymbol(address_t addr, address_t *symbolStart = NULL); 
     56    /** 
     57     * Returns the address of a symbol with name str. 
     58     * NOTE: This is much slower than it should be. This should be implemented 
     59     * using the hashtable sections in ELF. 
     60     */ 
     61    address_t findSymbol(char* str); 
    5562 
    56   /** 
    57   Returns the address of a symbol with name str. 
    58   NOTE: This is much slower than it should be. This should be implemented 
    59   using the hashtable sections in ELF. 
    60   **/ 
    61   address_t findSymbol(char* str); 
     63    /** 
     64     * Returns the address of the symbol with offset o in the 
     65     * relocation symbol table. 
     66     */ 
     67    address_t findDynamicSymbolLocation(address_t o); 
    6268 
    63   /** 
    64   Returns the address of the symbol with offset o in the 
    65   relocation symbol table. 
    66   **/ 
    67   address_t findDynamicSymbolLocation(address_t o); 
     69    /** 
     70     * Returns a NULL terminated string specifying the name of 
     71     * the symbol at offset o in the relocation symbol table. 
     72     */ 
     73    char *findDynamicSymbolName(address_t o); 
    6874 
    69   /** 
    70   Returns a NULL terminated string specifying the name of 
    71   the symbol at offset o in the relocation symbol table. 
    72   **/ 
    73   char *findDynamicSymbolName(address_t o); 
     75    /** 
     76     * Gets the address of the global offset table. 
     77     */ 
     78    address_t getGlobalOffsetTable(); 
    7479 
    75   /** 
    76   Gets the address of the global offset table. 
    77   **/ 
    78   address_t getGlobalOffsetTable(); 
     80    /** 
     81     * Returns the entry point of the executable. 
     82     */ 
     83    address_t getEntryPoint() 
     84    { 
     85        return (address_t)header->e_entry; 
     86    } 
    7987 
    80   /** 
    81   Returns the entry point of the executable
    82   **/ 
    83   address_t getEntryPoint() 
    84  
    85          return (address_t)header->e_entry
    86  
     88    /** 
     89     * Returns true if the parser loaded correctly
     90     */ 
     91    bool isValid() 
     92   
     93        return (filename!=0)
     94   
    8795 
    88   /** 
    89   Returns true if the parser loaded correctly. 
    90   **/ 
    91   bool isValid() 
    92   { 
    93           return (filename!=0); 
    94   } 
    95  
    96         private: 
    97                 Elf32Header        *header; 
    98                 Elf32SectionHeader *symbolTable; 
    99                 Elf32SectionHeader *stringTable; 
    100                 Elf32SectionHeader *gotTable; // Global offset table. 
    101                 Elf32SectionHeader *relTable; 
    102                 Elf32SectionHeader *sectionHeaders; 
    103         public: 
    104                 char               *filename; 
     96private: 
     97    Elf32Header        *header; 
     98    Elf32SectionHeader *symbolTable; 
     99    Elf32SectionHeader *stringTable; 
     100    Elf32SectionHeader *gotTable; // Global offset table. 
     101    Elf32SectionHeader *relTable; 
     102    Elf32SectionHeader *sectionHeaders; 
     103    const char         *filename; 
    105104}; 
    106105 
  • vesper/src/Globals.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#include "Globals.h" 
     
    1717class kernel kernel; 
    1818multiboot_t multiboot; 
    19 ElfParser kernelElfParser; 
     19elf_parser kernelElfParser; 
    2020MemoryManager memoryManager; 
    2121InterruptDescriptorTable interruptsTable; 
     
    109109void panic(const char *message, const char *file, uint32_t line) 
    110110{ 
    111         disableInterrupts(); 
     111        disable_interrupts(); 
    112112 
    113113        kconsole.set_attr(RED, YELLOW); 
     
    122122void panic_assert(const char *desc, const char *file, uint32_t line) 
    123123{ 
    124         disableInterrupts(); 
     124        disable_interrupts(); 
    125125 
    126126        kconsole.set_attr(WHITE, RED); 
  • vesper/src/Globals.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    1313extern class kernel kernel; 
    1414extern class multiboot_t multiboot; 
    15 extern class ElfParser kernelElfParser; 
     15extern class elf_parser kernelElfParser; 
    1616extern class MemoryManager memoryManager; 
    1717extern class InterruptDescriptorTable interruptsTable; 
  • vesper/src/Kernel.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#include "Kernel.h" 
     
    1818#include "PageFaultHandler.h" 
    1919 
    20 PageFaultHandler pageFaultHandler; 
     20page_fault_handler pageFaultHandler; 
    2121 
    2222void kernel::run() 
     
    122122address_t kernel::backtrace(int n) 
    123123{ 
    124         address_t basePointer = readBasePointer(); 
     124        address_t basePointer = read_base_pointer(); 
    125125        address_t ebp = basePointer; 
    126126        address_t eip = 1; 
     
    143143        if (basePointer == NULL) 
    144144        { 
    145                 basePointer = readBasePointer(); 
     145                basePointer = read_base_pointer(); 
    146146        } 
    147147        address_t ebp = basePointer; 
     
    164164void kernel::print_stacktrace(unsigned int n) 
    165165{ 
    166     address_t esp = readStackPointer(); 
     166    address_t esp = read_stack_pointer(); 
    167167    address_t espBase = esp; 
    168168    kconsole.set_color(GREEN); 
     
    175175} 
    176176 
    177 /* kate: indent-width 4; replace-tabs on; */ 
    178 /* vi:set ts=4:set expandtab=on: */// kate: indent-width 4; replace-tabs on; 
     177// kate: indent-width 4; replace-tabs on; 
    179178// vi:set ts=4:set expandtab=on: 
  • vesper/src/Kernel.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/arch/x86/MemoryManager-arch.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    8787}; 
    8888 
    89 extern "C" void copyPagePhysical(uint32_t from, uint32_t to); 
     89extern "C" void copy_page_physical(uint32_t from, uint32_t to); 
    9090 
    9191/** 
     
    121121                                table->pages[i].setAccessed(pages[i].isAccessed()); 
    122122                                table->pages[i].setDirty(pages[i].isDirty()); 
    123                                 copyPagePhysical(pages[i].frame(), table->pages[i].frame()); 
     123                                copy_page_physical(pages[i].frame(), table->pages[i].frame()); 
    124124                        } 
    125125                } 
     
    269269 
    270270// # endif // LANG_X86 
     271 
    271272// kate: indent-width 4; replace-tabs on; 
    272273// vi:set ts=4:set expandtab=on: 
  • vesper/src/boot/Multiboot.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#include "Multiboot.h" 
  • vesper/src/boot/Multiboot.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/boot/loader.s

    r92 r94  
    33; 
    44; Distributed under the Boost Software License, Version 1.0. 
    5 ; (See accompanying file LICENSE_1_0.txt or copy at http:;www.boost.org/LICENSE_1_0.txt) 
     5; (See file LICENSE_1_0.txt or a copy at http:;www.boost.org/LICENSE_1_0.txt) 
    66; 
    7 ; kate: replace-tabs off; indent-width 4; tab-width: 4; 
    87global _loader                         ; making entry point visible to linker 
    98global initialEsp 
     
    5352        cli 
    5453        jmp $                              ; halt machine should kernel return 
     54 
    5555; kate: indent-width 4; replace-tabs on; 
    5656; vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/Atomic.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
    88 
    9 class atomic_t 
     9class atomic_ops 
    1010{ 
    1111public: 
    1212        static address_t exchange(address_t *lock, address_t new_val); 
    1313}; 
     14 
    1415// kate: indent-width 4; replace-tabs on; 
    1516// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/BitArray.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/lib/DefaultConsole.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#include "DefaultConsole.h" 
  • vesper/src/lib/DefaultConsole.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/lib/Lockable.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    2727                uint32_t new_val = 1; 
    2828                // If we exchange the lock value with 1 and get 1 out, it was locked. 
    29                 while (atomic_t::exchange(&lock, new_val) == 1) 
     29                while (atomic_ops::exchange(&lock, new_val) == 1) 
    3030                { 
    3131                        // Do nothing. 
     
    3838                // Spin once. 
    3939                uint32_t new_val = 1; 
    40                 if (atomic_t::exchange(&lock, new_val) == 0) 
     40                if (atomic_ops::exchange(&lock, new_val) == 0) 
    4141                { 
    4242                        return true; 
  • vesper/src/lib/Macros.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    1515#define NORETURN __attribute__((noreturn)) 
    1616// Uncommon optimization: functions that can be optimized out: 
    17 // Note that a function that has pointer arguments and examines the data pointed to must not be declared const. Likewise, a function that calls a non-const function usually must not be const. It does not make sense for a const function to return void. 
     17// Note that a function that has pointer arguments and examines the data 
     18// pointed to must not be declared const. Likewise, a function that calls a 
     19// non-const function usually must not be const. It does not make sense for a 
     20// const function to return void. 
    1821#define CONST_FN __attribute__((const)) 
    1922 
    2023#define PANIC(msg) panic(msg, __FILE__, __LINE__); 
    2124#define ASSERT(b) ((b) ? (void)0 : panic_assert(#b, __FILE__, __LINE__)) 
    22 #define BUG_ON(b) ASSERT(!(b)) 
     25#define BUG_ON(b) ASSERT(!(b)) //TODO: remove 
     26 
    2327// kate: indent-width 4; replace-tabs on; 
    2428// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/OrderedArray.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/lib/Registers.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    99#include "Types.h" 
    1010 
    11 extern "C"  address_t readInstructionPointer(); 
    12 extern "C"  address_t readStackPointer(); 
    13 extern "C"  address_t readBasePointer(); 
     11extern "C"  address_t read_instruction_pointer(); 
     12extern "C"  address_t read_stack_pointer(); 
     13extern "C"  address_t read_base_pointer(); 
    1414 
    15 extern "C"  void writeStackPointer(address_t ptr); 
    16 extern "C"  void writeBasePointer(address_t ptr); 
     15extern "C"  void write_stack_pointer(address_t ptr); 
     16extern "C"  void write_base_pointer(address_t ptr); 
    1717 
    18 extern "C"  address_t readPageDirectory(); 
    19 extern "C"  void writePageDirectory(address_t pageDirPhysical); 
    20 extern "C"  void flushPageDirectory(void); 
     18extern "C"  address_t read_page_directory(); 
     19extern "C"  void write_page_directory(address_t pageDirPhysical); 
     20extern "C"  void flush_page_directory(void); 
    2121 
    22 extern "C"  void enablePaging(void); 
    23 extern "C"  void enableInterrupts(void); 
    24 extern "C"  void disableInterrupts(void); 
     22extern "C"  void enable_paging(void); 
     23extern "C"  void enable_interrupts(void); 
     24extern "C"  void disable_interrupts(void); 
    2525 
    2626// defined in schedule/CriticalSection.cpp 
    27 extern "C" void criticalSection(); 
    28 extern "C" void endCriticalSection(); 
     27extern "C" void critical_section(); 
     28extern "C" void end_critical_section(); 
     29 
    2930// kate: indent-width 4; replace-tabs on; 
    3031// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/Registers.s

    r92 r94  
    33; 
    44; Distributed under the Boost Software License, Version 1.0. 
    5 ; (See accompanying file LICENSE_1_0.txt or copy at http:;www.boost.org/LICENSE_1_0.txt) 
     5; (See file LICENSE_1_0.txt or a copy at http:;www.boost.org/LICENSE_1_0.txt) 
    66; 
    77; 
    8 ; Register.s -- provides functions to read/write registers on the X86 architecture. 
     8; Register.s -- provides functions to read/write registers on the X86 
     9; architecture. 
    910; 
    1011 
    11 global readInstructionPointer 
    12 global readStackPointer 
    13 global readBasePointer 
    14 global writeStackPointer 
    15 global writeBasePointer 
    16 global readPageDirectory 
    17 global writePageDirectory 
    18 global flushPageDirectory 
    19 global enablePaging 
    20 global enableInterrupts 
    21 global disableInterrupts 
     12global read_instruction_pointer 
     13global read_stack_pointer 
     14global read_base_pointer 
     15global write_stack_pointer 
     16global write_base_pointer 
     17global read_page_directory 
     18global write_page_directory 
     19global flush_page_directory 
     20global enable_paging 
     21global enable_interrupts 
     22global disable_interrupts 
    2223 
    23 readInstructionPointer: 
     24read_instruction_pointer: 
    2425        pop eax     ; Get the return address 
    2526        jmp eax     ; return - can't use RET because return address popped off stack. 
    2627 
    27 readStackPointer: 
     28read_stack_pointer: 
    2829        mov eax, esp 
    2930        add eax, 4          ; Stack was pushed with return address, so take into account. 
    3031        ret 
    3132 
    32 readBasePointer: 
     33read_base_pointer: 
    3334        mov eax, ebp 
    3435        ret 
    3536 
    36 writeStackPointer: 
     37write_stack_pointer: 
    3738        pop ebx 
    3839        pop eax 
     
    4041        jmp ebx 
    4142 
    42 writeBasePointer: 
     43write_base_pointer: 
    4344        mov ebp, [esp+4] 
    4445        ret 
    4546 
    46 writePageDirectory: 
     47write_page_directory: 
    4748        mov eax, [esp+4] 
    4849        mov cr3, eax 
    4950        ret 
    5051 
    51 readPageDirectory: 
     52read_page_directory: 
    5253        mov eax, cr3 
    5354        ret 
    5455 
    55 flushPageDirectory: 
     56flush_page_directory: 
    5657        mov eax, cr3 
    5758        mov cr3, eax 
    5859        ret 
    5960 
    60 enablePaging: 
     61enable_paging: 
    6162        mov eax, cr0 
    6263        or  eax, 0x80000000 
     
    6465        ret 
    6566 
    66 disableInterrupts: 
     67disable_interrupts: 
    6768        cli 
    6869        ret 
    6970 
    70 enableInterrupts: 
     71enable_interrupts: 
    7172        sti 
    7273        ret 
     74 
    7375; kate: indent-width 4; replace-tabs on; 
    7476; vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/Types.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    1515typedef int32_t  ptrdiff_t; 
    1616typedef uint32_t address_t; 
     17 
    1718// kate: indent-width 4; replace-tabs on; 
    1819// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/asm-x86-div64.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/lib/common.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    6060extern "C" int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) 
    6161        __attribute__ ((format (printf, 3, 0))); 
    62 // extern "C" char *kasprintf(gfp_t gfp, const char *fmt, ...) 
    63 //         __attribute__ ((format (printf, 2, 3))); 
    64 // extern "C" char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); 
    6562 
    6663extern "C" int sscanf(const char *, const char *, ...) 
  • vesper/src/lib/ctype.c

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/* 
  • vesper/src/lib/ctype.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
  • vesper/src/lib/g++support.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/* Dummy implementation for now */ 
  • vesper/src/lib/ia32.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/********************************************************************* 
  • vesper/src/lib/string.c

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/* 
     
    593593EXPORT_SYMBOL(memchr); 
    594594#endif 
     595 
    595596// kate: indent-width 4; replace-tabs on; 
    596597// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/string.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77#pragma once 
     
    8686extern void * memchr(const void *,int,size_t); 
    8787#endif 
     88 
    8889// kate: indent-width 4; replace-tabs on; 
    8990// vi:set ts=4:set expandtab=on: 
  • vesper/src/lib/vsprintf.c

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/* 
  • vesper/src/lib/x86.h

    r92 r94  
    33// 
    44// Distributed under the Boost Software License, Version 1.0. 
    5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) 
    66// 
    77/********************************************************************* 
    8  *                 
     8 * 
    99 * Copyright (C) 2003-2004, 2006-2007,  Karlsruhe University 
    10  *                 
     10 * 
    1111 * File path:     arch/x86/x86.h 
    1212 * Description:   X86-64 CPU Specific constants 
    13  *                 
     13 * 
    1414 * Redistribution and use in source and binary forms, with or without 
    1515 * modification, are permitted provided that the following conditions 
     
    2020 *    notice, this list of conditions and the following disclaimer in the 
    2121 *    documentation and/or other materials provided with the distribution. 
    22  *  
     22 * 
    2323 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 
    2424 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
     
    3232 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
    3333 * SUCH DAMAGE. 
    34  *                 
     34 * 
    3535 * $Id$ 
    36  *                 
     36 * 
    3737 ********************************************************************/ 
    3838#pragma once 
  • vesper/src/memory/Heap.cpp

    r92 r94  
    33// 
    44// Distributed under the Boost Software Licen