Changeset f1380b7 in mainline


Ignore:
Timestamp:
2018-03-02T20:21:57Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34e1206
Parents:
a35b458
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:51:04)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:21:57)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, remaining files.

Files:
62 edited

Legend:

Unmodified
Added
Removed
  • README.md

    ra35b458 rf1380b7  
    9494
    9595## License
    96  
     96
    9797HelenOS is open source, free software. Its source code is available under
    9898the BSD license. Some third-party components are licensed under GPL.
  • boot/Makefile

    ra35b458 rf1380b7  
    8181        echo "</ul></body></html>" >>"$(DIST_PATH)/test/test.html"
    8282endif
    83        
     83
    8484ifeq ($(CONFIG_PCUT_SELF_TESTS),y)
    8585        echo "echo Running all PCUT self-tests..." >"$(DIST_PATH)/test/run_pcut"
     
    9999        echo "</ul></body></html>" >>"$(DIST_PATH)/test/pcut.html"
    100100endif
    101        
     101
    102102        for drv in $(RD_DRVS) ; do \
    103103                drv_dir="`dirname "$$drv"`" ; \
  • boot/Makefile.grub

    ra35b458 rf1380b7  
    6363        gunzip $(IMAGE)
    6464endif
    65        
     65
    6666        for module in $(COMPONENTS) ; do \
    6767                cp "$$module" $(BOOT)/ ; \
    6868        done
    69        
     69
    7070        echo "set default=0" > $(BOOT_CONFIG)
    7171        echo "set timeout=10" >> $(BOOT_CONFIG)
    7272        echo "" >> $(BOOT_CONFIG)
    73        
     73
    7474ifeq ($(GRUB_ARCH),pc)
    7575        echo "insmod vbe" >> $(BOOT_CONFIG)
     
    8181endif
    8282        echo "" >> $(BOOT_CONFIG)
    83        
     83
    8484        echo "menuentry 'HelenOS $(RELEASE)' --class helenos --class os {" >> $(BOOT_CONFIG)
    8585        for module in $(MODULES) ; do \
  • boot/arch/ia64/_link.ld.in

    ra35b458 rf1380b7  
    1818                *(.components);
    1919        }
    20        
     20
    2121        /DISCARD/ : {
    2222                *(.*);
  • boot/arch/mips32/_link.ld.in

    ra35b458 rf1380b7  
    2323                *(.components);
    2424        }
    25        
     25
    2626        /DISCARD/ : {
    2727                *(.gnu.*);
  • boot/arch/ppc32/_link.ld.in

    ra35b458 rf1380b7  
    2020                *(.components);
    2121        }
    22        
     22
    2323        /DISCARD/ : {
    2424                *(.gnu.*);
  • boot/arch/riscv64/_link.ld.in

    ra35b458 rf1380b7  
    55SECTIONS {
    66        . = PHYSMEM_START;
    7        
     7
    88        .text : {
    99                *(BOOTSTRAP);
    1010                *(.text);
    1111        }
    12        
     12
    1313        . = ALIGN(0x1000);
    1414        .htif : {
     
    1717        }
    1818        . = ALIGN(0x1000);
    19        
     19
    2020        . = ALIGN(0x1000);
    2121        .pt : {
     
    2424        }
    2525        . = ALIGN(0x1000);
    26        
     26
    2727        .data : {
    2828                *(.data);       /* initialized data */
     
    3737                *(.components);
    3838        }
    39        
     39
    4040        /DISCARD/ : {
    4141                *(.gnu.*);
  • boot/arch/sparc64/_link.ld.in

    ra35b458 rf1380b7  
    66                *(BOOTSTRAP);
    77                *(.text);
    8                
     8
    99                *(.data);       /* initialized data */
    1010                *(.rodata);
     
    1717                *(.components);
    1818        }
    19        
     19
    2020        /DISCARD/ : {
    2121                *(.gnu.*);
  • contrib/arch/HelenOS.adl

    ra35b458 rf1380b7  
    22        /* SPARTAN kernel */
    33        inst kernel kernel;
    4        
     4
    55        /* Naming Service */
    66        inst ns ns;
    7        
     7
    88        /* Loader (clonable service) */
    99        inst loader loader;
    10        
     10
    1111        /* Device mapper */
    1212        inst devmap devmap;
    13        
     13
    1414        /* Block device */
    1515        inst bd bd;
    16        
     16
    1717        /* VFS server */
    1818        inst vfs vfs;
    19        
     19
    2020        /* Console */
    2121        inst console console;
    22        
     22
    2323        /* Kernel log */
    2424        inst kio kio;
    25        
     25
    2626        [/uspace/lib/libc/bind%ns]
    2727        [/uspace/lib/libc/bind%loader]
     
    3131        [/uspace/lib/libc/bind%console]
    3232        [/uspace/lib/libc/bind%kio]
    33        
     33
    3434        bind ns:kbd to console:kbd;
    3535        bind ns:fb to console:fb;
     
    3939        bind ns:devmap_client to devmap:devmap_client;
    4040        bind ns:loader to loader:loader;
    41        
     41
    4242        bind loader:ns to ns:ns;
    43        
     43
    4444        bind devmap:ns to ns:ns;
    4545        bind devmap:rd to bd:rd;
    4646        bind devmap:console to console:console;
    47        
     47
    4848        bind bd:ns to ns:ns;
    4949        bind bd:devmap_driver to devmap:devmap_driver;
    50        
     50
    5151        bind vfs:ns to ns:ns;
    5252        bind vfs:rd to bd:rd;
    5353        bind vfs:devmap_client to devmap:devmap_client;
    5454        bind vfs:device to console:console;
    55        
     55
    5656        bind console:ns to ns:ns;
    5757        bind console:devmap_driver to devmap:devmap_driver;
    5858        bind console:sys_console to kernel:sys_console;
    59        
     59
    6060        bind kio:ns to ns:ns;
    6161};
  • contrib/arch/kernel/kernel.adl

    ra35b458 rf1380b7  
    1313                /* Enable kernel console */
    1414                sysarg_t sys_debug_enable_console(void);
    15                
     15
    1616                /* Disable kernel console */
    1717                sysarg_t sys_debug_disable_console(void);
     
    2626                /* Create new thread */
    2727                sysarg_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, size_t name_len, thread_id_t *uspace_thread_id);
    28                
     28
    2929                /* Terminate current thread */
    3030                sysarg_t sys_thread_exit(int uspace_status);
    31                
     31
    3232                /* Get current thread id */
    3333                sysarg_t sys_thread_get_id(thread_id_t *uspace_thread_id);
     
    4343                /* Set name fo the current task */
    4444                sysarg_t sys_task_set_name(const char *uspace_name, size_t name_len);
    45                
     45
    4646                /* Get current task id */
    4747                sysarg_t sys_task_get_id(task_id_t *uspace_task_id);
     
    6363                /* Sleep in a futex wait queue */
    6464                sysarg_t sys_futex_sleep_timeout(uintptr_t uaddr, uint32_t usec, int flags);
    65                
     65
    6666                /* Wakeup one thread waiting in futex wait queue */
    6767                sysarg_t sys_futex_wakeup(uintptr_t uaddr);
     
    8383                /* Create new address space area */
    8484                sysarg_t sys_as_area_create(uintptr_t address, size_t size, int flags);
    85                
     85
    8686                /* Resize an address space area */
    8787                sysarg_t sys_as_area_resize(uinptr_t address, size_t size, int flags);
    88                
     88
    8989                /* Change flags of an address space area */
    9090                sysarg_t sys_as_area_change_flags(uintptr_t address, int flags);
    91                
     91
    9292                /* Destroy an address space area */
    9393                sysarg_t sys_as_area_destroy(uintptr_t address);
     
    104104                /* Fast synchronous IPC call */
    105105                sysarg_t sys_ipc_call_sync_fast(sysarg_t phoneid, sysarg_t method, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, ipc_data_t *data);
    106                
     106
    107107                /* Slow synchronous IPC call */
    108108                sysarg_t sys_ipc_call_sync_slow(sysarg_t phoneid, ipc_data_t *question, ipc_data_t *answer);
    109                
     109
    110110                /* Fast asynchronous IPC call */
    111111                sysarg_t sys_ipc_call_async_fast(sysarg_t phoneid, sysarg_t method, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4);
    112                
     112
    113113                /* Slow asynchronous IPC call */
    114114                sysarg_t sys_ipc_call_async_slow(sysarg_t phoneid, ipc_data_t *data);
    115                
     115
    116116                /* Fast forward a received IPC call to another destination */
    117117                sysarg_t sys_ipc_forward_fast(sysarg_t callid, sysarg_t phoneid, sysarg_t method, sysarg_t arg1, sysarg_t arg2, int mode);
    118                
     118
    119119                /* Slow forward a received IPC call to another destination */
    120120                sysarg_t sys_ipc_forward_slow(sysarg_t callid, sysarg_t phoneid, ipc_data_t *data, int mode);
    121                
     121
    122122                /* Fast answer an IPC call */
    123123                sysarg_t sys_ipc_answer_fast(sysarg_t callid, sysarg_t retval, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4);
    124                
     124
    125125                /* Slow answer an IPC call */
    126126                sysarg_t sys_ipc_answer_slow(sysarg_t callid, ipc_data_t *data);
    127                
     127
    128128                /* Hang up a phone */
    129129                sysarg_t sys_ipc_hangup(int phoneid);
    130                
     130
    131131                /* Wait for an incoming IPC call or answer */
    132132                sysarg_t sys_ipc_wait_for_call(ipc_data_t *calldata, uint32_t usec, int flags);
    133                
     133
    134134                /* Interrupt one thread of the current task from waiting on IPC call */
    135135                sysarg_t sys_ipc_poke(void);
     
    162162                sysarg_t sys_cap_grant(sysarg64_t *uspace_taskid, cap_t caps);
    163163#endif
    164                
     164
    165165#ifdef __64_BITS__
    166166                sysarg_t sys_cap_grant(sysarg_t taskid, cap_t caps);
    167167#endif
    168                
     168
    169169                /* Revoke capabilities from a task */
    170170#ifdef __32_BITS__
    171171                sysarg_t sys_cap_revoke(sysarg64_t *uspace_taskid, cap_t caps);
    172172#endif
    173                
     173
    174174#ifdef __64_BITS__
    175175                sysarg_t sys_cap_revoke(sysarg_t taskid, cap_t caps);
     
    185185                /* Enable access I/O address space for the current task */
    186186                sysarg_t sys_enable_iospace(ddi_ioarg_t *uspace_io_arg);
    187                
     187
    188188                /* Map physical memory to the current task's address space */
    189189                sysarg_t sys_physmem_map(sysarg_t phys_base, sysarg_t virt_base, sysarg_t pages, sysarg_t flags);
    190                
     190
    191191                /* Enable or disable preemption */
    192192                sysarg_t sys_preempt_control(int enable);
    193                
     193
    194194                /* Assign unique device number */
    195195                sysarg_t sys_device_assign_devno(void);
    196                
     196
    197197                /* Connect an IRQ handler to the current task */
    198198                sysarg_t sys_register_irq(inr_t inr, devno_t devno, sysarg_t method, irq_code_t *ucode);
    199                
     199
    200200                /* Disconnect an IRQ handler from the current task */
    201201                sysarg_t sys_unregister_irq(inr_t inr, devno_t devno);
     
    214214                /* Check for sysinfo key validity */
    215215                sysarg_t sys_sysinfo_valid(sysarg_t ptr, sysarg_t len);
    216                
     216
    217217                /* Get sysinfo key value */
    218218                sysarg_t sys_sysinfo_value(unatice_t ptr, sysarg_t len);
     
    229229                sysarg_t sys_ipc_connect_kbox(sysarg64_t *uspace_taskid);
    230230#endif
    231                
     231
    232232#ifdef __64_BITS__
    233233                sysarg_t sys_ipc_connect_kbox(sysarg_t taskid);
     
    308308        inst sys_sysinfo sys_sysinfo;
    309309        inst sys_debug sys_debug;
    310        
     310
    311311        delegate sys_kio to sys_console:sys_kio;
    312312        delegate sys_console to sys_console:sys_console;
  • contrib/arch/uspace/srv/bd/bd.adl

    ra35b458 rf1380b7  
    22                /* Share out data buffer */
    33                sysarg_t ipc_m_share_out(in sysarg_t as_area_base, in sysarg_t as_area_size, in sysarg_t flags, out sysarg_t dst_as_area_base);
    4                
     4
    55                /* Get block size */
    66                sysarg_t get_block_size(out sysarg_t block_size);
    7                
     7
    88                /* Read blocks via shared data buffer */
    99                sysarg_t read_blocks(in sysarg_t index_lower, in sysarg_t index_upper, in sysarg_t count);
    10                
     10
    1111                /* Write blocks via shared data buffer */
    1212                sysarg_t write_blocks(in sysarg_t index_lower, in sysarg_t index_upper, in sysarg_t count);
     
    1717architecture bd {
    1818        inst rd rd;
    19        
     19
    2020        [/uspace/lib/libc/subsume%rd]
    21        
     21
    2222        delegate rd to rd:rd;
    23        
     23
    2424        subsume rd:ns to ns;
    2525        subsume rd:devmap_driver to devmap_driver;
  • contrib/arch/uspace/srv/console/console.adl

    ra35b458 rf1380b7  
    22                /* Read characters from console */
    33                sysarg_t read(out_copy stream data);
    4                
     4
    55                /* Write characters to console */
    66                sysarg_t write(in_copy stream data);
    7                
     7
    88                /* Get last event from event queue */
    99                sysarg_t get_event(out sysarg_t type, out sysarg_t key, out sysarg_t mods, out sysarg_t char);
    10                
     10
    1111                /* Flush output buffer */
    1212                sysarg_t sync(void);
    13                
     13
    1414                /* Clear console */
    1515                sysarg_t clear(void);
    16                
     16
    1717                /* Move cursor to given position */
    1818                sysarg_t goto(in sysarg_t col, in sysarg_t row);
    19                
     19
    2020                /* Get console dimensions (in character cells) */
    2121                sysarg_t get_size(out sysarg_t cols, in sysarg_t rows);
    22                
     22
    2323                /* Get color capabilities */
    2424                sysarg_t get_color_cap(void);
    25                
     25
    2626                /* Set abstract text style */
    2727                sysarg_t set_style(in sysarg_t style);
    28                
     28
    2929                /* Set EGA-based text color */
    3030                sysarg_t set_color(in sysarg_t fb_color, in sysarg_t bg_color, in sysarg_t attr);
    31                
     31
    3232                /* Set RGB-based text color */
    3333                sysarg_t set_rgb_color(in sysarg_t fb_color, in sysarg_t bg_color);
    34                
     34
    3535                /* Set cursor visibility */
    3636                sysarg_t cursor_visibility(in sysarg_t visible);
    37                
     37
    3838                /* Switch to kernel debugging console (if available) */
    3939                sysarg_t kcon_enable(void);
     
    8585        inst kbd kbd;
    8686        inst fb fb;
    87        
     87
    8888        bind ui_dispatcher:kbd to kbd:kbd;
    8989        bind ui_dispatcher:fb to fb:fb;
    90        
     90
    9191        bind kbd:event to ui_dispatcher:event;
    92        
     92
    9393        delegate console to ui_dispatcher:console;
    9494        delegate kbd to kbd:kbd;
    9595        delegate fb to fb:fb;
    96        
     96
    9797        [/uspace/lib/libc/subsume%ui_dispatcher]
    9898        [/uspace/lib/libc/subsume%kbd]
    9999        [/uspace/lib/libc/subsume%fb]
    100        
     100
    101101        subsume ui_dispatcher:ns to ns;
    102102        subsume ui_dispatcher:devmap_driver to devmap_driver;
    103103        subsume ui_dispatcher:sys_console to sys_console;
    104        
     104
    105105        subsume kbd:ns to ns;
    106106        subsume fb:ns to ns;
  • contrib/arch/uspace/srv/console/console.bp

    ra35b458 rf1380b7  
    55                [fnc.cons_read]
    66        } +
    7        
     7
    88        ?write {
    99                [fnc.cons_write]
    1010        } +
    11        
     11
    1212        ?sync {
    1313                [fnc.fb_pending_flush] ;
     
    1717                }
    1818        } +
    19        
     19
    2020        ?clear {
    2121                tentative {
     
    2323                }
    2424        } +
    25        
     25
    2626        ?goto {
    2727                tentative {
     
    2929                }
    3030        } +
    31        
     31
    3232        ?set_style {
    3333                [fnc.fb_pending_flush] ;
     
    3636                }
    3737        } +
    38        
     38
    3939        ?set_color {
    4040                [fnc.fb_pending_flush] ;
     
    4343                }
    4444        } +
    45        
     45
    4646        ?set_rgb_color {
    4747                [fnc.fb_pending_flush] ;
     
    5050                }
    5151        } +
    52        
     52
    5353        ?cursor_visibility {
    5454                [fnc.fb_pending_flush] ;
     
    5757                }
    5858        } +
    59        
     59
    6060        ?kcon_enable {
    6161                !sys_console.sys_debug_enable_console
    6262        } +
    63        
     63
    6464        ?get_event +
    6565        ?get_size +
  • contrib/arch/uspace/srv/devmap/devmap.adl

    ra35b458 rf1380b7  
    22                /* Establish connection (iface is DEVMAP_DRIVER) */
    33                sysarg_t ipc_m_connect_me_to(in sysarg_t iface);
    4                
     4
    55                /* Register as a new driver */
    66                sysarg_t driver_register(in_copy string name);
    7                
     7
    88                /* Unregister all devices and the driver itself */
    99                sysarg_t driver_unregister(void);
    10                
     10
    1111                /* Register new device and return handle */
    1212                sysarg_t device_register(in_copy string name, out sysarg_t handle);
    13                
     13
    1414                /* Unregister device */
    1515                sysarg_t device_unregister(in sysarg_t handle);
    16                
     16
    1717                /* Resolve device name to handle */
    1818                sysarg_t device_get_handle(in sysarg_t flags, in_copy string name);
    19                
     19
    2020                /* Get device name for a given handle */
    2121                sysarg_t device_get_name(in sysarg_t handle);
    22                
     22
    2323                /* Close connection */
    2424                sysarg_t ipc_m_phone_hungup(void);
     
    3030                /* Establish connection (iface is DEVMAP_CLIENT) or forward to device (iface is DEVMAP_CONNECT_TO_DEVICE) */
    3131                sysarg_t ipc_m_connect_me_to(in sysarg_t iface, in sysarg_t handle);
    32                
     32
    3333                /* Resolve device name to handle */
    3434                sysarg_t device_get_handle(in sysarg_t flags, in_copy string name);
    35                
     35
    3636                /* Get device name for a given handle */
    3737                sysarg_t device_get_name(in sysarg_t handle);
    38                
     38
    3939                /* Clone NULL device */
    4040                sysarg_t device_null_create(out sysarg_t index);
    41                
     41
    4242                /* Destroy NULL device */
    4343                sysarg_t device_null_destroy(in sysarg_t index);
    44                
     44
    4545                /* Get number of devices */
    4646                sysarg_t device_get_count(out sysarg_t count);
    47                
     47
    4848                /* Get an array of (device_name, handle) pairs */
    4949                sysarg_t device_get_devices(out_copy stream data);
    50                
     50
    5151                /* Close connection */
    5252                sysarg_t ipc_m_phone_hungup(void);
    5353        protocol:
    5454                [devmap_client.bp]
    55        
     55
    5656};
    5757
  • contrib/arch/uspace/srv/devmap/devmap_client.bp

    ra35b458 rf1380b7  
    1010                        ?ipc_m_data_write /* device name */
    1111                } +
    12                
     12
    1313                ?device_get_name +
    1414                ?device_null_create +
    1515                ?device_null_destroy +
    1616                ?device_get_count +
    17                
     17
    1818                ?device_get_devices {
    1919                        ?ipc_m_data_read /* buffer */
  • contrib/arch/uspace/srv/devmap/devmap_driver.bp

    ra35b458 rf1380b7  
    1414                }
    1515        } +
    16        
     16
    1717        ?device_get_handle {
    1818                ?ipc_m_data_write /* device name */
    1919        } +
    20        
     20
    2121        ?device_get_name +
    2222        ?device_unregister +
  • contrib/arch/uspace/srv/fb/fb.adl

    ra35b458 rf1380b7  
    22                /* Get screen resolution */
    33                sysarg_t get_resolution(out sysarg_t width, out sysarg_t height);
    4                
     4
    55                /* Yield screen */
    66                sysarg_t screen_yield(void);
    7                
     7
    88                /* Reclaim screen */
    99                sysarg_t screen_reclaim(void);
    10                
     10
    1111                /* Set mouse cursor position on screen */
    1212                sysarg_t pointer_move(in sysarg_t x, in sysarg_t y);
    13                
     13
    1414                /* Create new viewport */
    1515                sysarg_t viewport_create(in sysarg_t origin, in sysarg_t dimension);
    16                
     16
    1717                /* Get viewport size in character cells */
    1818                sysarg_t get_csize(out sysarg_t width, out sysarg_t height);
    19                
     19
    2020                /* Clear viewport character buffer */
    2121                sysarg_t clear(void);
    22                
     22
    2323                /* Scroll viewport character buffer */
    2424                sysarg_t scroll(in sysarg_t lines);
    25                
     25
    2626                /* Set active viewport */
    2727                sysarg_t viewport_switch(in sysarg_t index);
    28                
     28
    2929                /* Delete viewport */
    3030                sysarg_t viewport_delete(in sysarg_t index);
    31                
     31
    3232                /* Get color capabilities of the screen */
    3333                sysarg_t get_color_cap(void);
    34                
     34
    3535                /* Set abstract text style */
    3636                sysarg_t set_style(in sysarg_t style);
    37                
     37
    3838                /* Set EGA-based text color */
    3939                sysarg_t set_color(in sysarg_t fg_color, in sysarg_t bg_color, in sysarg_t atrr);
    40                
     40
    4141                /* Set RGB-based text color */
    4242                sysarg_t set_rgb_color(in sysarg_t fg_color, in sysarg_t bg_color);
    43                
     43
    4444                /* Put a character to a given position in viewport character buffer */
    4545                sysarg_t putchar(in sysarg_t char, in sysarg_t col, in sysarg_t row);
    46                
     46
    4747                /* Set character cursor visibility in viewport */
    4848                sysarg_t cursor_visibility(in sysarg_t visible);
    49                
     49
    5050                /* Set character cursor position in viewport */
    5151                sysarg_t cursor_goto(in sysarg_t col, in sysarg_t row);
    52                
     52
    5353                /* Prepare memory sharing of bitmaps */
    5454                sysarg_t prepare_shm(in sysarg_t as_area_base);
    55                
     55
    5656                /* Share bitmap or text data */
    5757                sysarg_t ipc_m_share_out(in sysarg_t as_area_base, in sysarg_t as_area_size, out sysarg_t dst_as_area);
    58                
     58
    5959                /* Drop memory sharing */
    6060                sysarg_t drop_shm(void);
    61                
     61
    6262                /* Draw PPM data from shared memory to viewport */
    6363                sysarg_t draw_ppm(in sysarg_t x, in sysarg_t y);
    64                
     64
    6565                /* Put characters from shared memory to viewport */
    6666                sysarg_t draw_text_data(in sysarg_t x, in sysarg_t y, in sysarg_t width, in sysarg_t height);
    67                
     67
    6868                /* Convert PPM data from shared memory to pixmap */
    6969                sysarg_t shm2pixmap(void);
    70                
     70
    7171                /* Save viewport contents to a pixmap */
    7272                sysarg_t vp2pixmap(in sysarg_t vp_index);
    73                
     73
    7474                /* Draw pixmap to viewport */
    7575                sysarg_t vp_draw_pixmap(in sysarg_t vp_index, in sysarg_t pm_index);
    76                
     76
    7777                /* Discard pixmap */
    7878                sysarg_t drop_pixmap(in sysarg_t pm_index);
    79                
     79
    8080                /* Create new (empty) animation for a viewport */
    8181                sysarg_t anim_create(in sysarg_t vp_index);
    82                
     82
    8383                /* Append a pixmap to an animation */
    8484                sysarg_t anim_addpixmap(in sysarg_t anim_index, in sysarg_t pm_index);
    85                
     85
    8686                /* Change a viewport associated with an animation */
    8787                sysarg_t anim_chgvp(in sysarg_t anim_index, in sysarg_t vp_index);
    88                
     88
    8989                /* Start animation playback */
    9090                sysarg_t anim_start(in sysarg_t anim_index);
    91                
     91
    9292                /* Stop animation playback */
    9393                sysarg_t anim_stop(in sysarg_t anim_index);
    94                
     94
    9595                /* Delete animation */
    9696                sysarg_t anim_drop(in sysarg_t anim_index);
  • contrib/arch/uspace/srv/fs/devfs/devfs.bp

    ra35b458 rf1380b7  
    55                        ?ipc_m_data_write /* mount options */
    66                } +
    7                
     7
    88                ?lookup {
    99                        tentative {
     
    1414                        }
    1515                } +
    16                
     16
    1717                ?open_node {
    1818                        tentative {
     
    2020                        }
    2121                } +
    22                
     22
    2323                ?read {
    2424                        tentative {
     
    3434                        }
    3535                } +
    36                
     36
    3737                ?write {
    3838                        tentative {
     
    4444                        }
    4545                } +
    46                
     46
    4747                ?stat {
    4848                        ?ipc_m_data_read /* struct data */
    4949                } +
    50                
     50
    5151                ?close {
    5252                        !device.ipc_m_phone_hungup
    5353                } +
    54                
     54
    5555                ?mount +
    5656                ?truncate +
  • contrib/arch/uspace/srv/fs/fat/fat.bp

    ra35b458 rf1380b7  
    1010                        }
    1111                } +
    12                
     12
    1313                ?mount {
    1414                        [/uspace/lib/libfs/fnc.libfs_mount]
    1515                } +
    16                
     16
    1717                ?lookup {
    1818                        [/uspace/lib/libfs/fnc.libfs_lookup]
    1919                } +
    20                
     20
    2121                ?open_node {
    2222                        [/uspace/lib/libfs/fnc.libfs_open_node]
    2323                } +
    24                
     24
    2525                ?read {
    2626                        tentative {
     
    2828                        }
    2929                } +
    30                
     30
    3131                ?write {
    3232                        tentative {
     
    3434                        }
    3535                } +
    36                
     36
    3737                ?stat {
    3838                        [/uspace/lib/libfs/fnc.libfs_stat]
    3939                } +
    40                
     40
    4141                ?truncate +
    4242                ?close +
  • contrib/arch/uspace/srv/fs/tmpfs/tmpfs.bp

    ra35b458 rf1380b7  
    88                        }
    99                } +
    10                
     10
    1111                ?mount {
    1212                        [/uspace/lib/libfs/fnc.libfs_mount]
    1313                } +
    14                
     14
    1515                ?lookup {
    1616                        [/uspace/lib/libfs/fnc.libfs_lookup]
    1717                } +
    18                
     18
    1919                ?open_node {
    2020                        [/uspace/lib/libfs/fnc.libfs_open_node]
    2121                } +
    22                
     22
    2323                ?read {
    2424                        tentative {
     
    2626                        }
    2727                } +
    28                
     28
    2929                ?write {
    3030                        tentative {
     
    3232                        }
    3333                } +
    34                
     34
    3535                ?stat {
    3636                        [/uspace/lib/libfs/fnc.libfs_stat]
    3737                } +
    38                
     38
    3939                ?truncate +
    4040                ?close +
  • contrib/arch/uspace/srv/kbd/kbd.adl

    ra35b458 rf1380b7  
    22                /* Callback connection */
    33                sysarg_t ipc_m_connect_to_me(void);
    4                
     4
    55                /* Yield hardware */
    66                sysarg_t yield(void);
    7                
     7
    88                /* Reclaim hardware */
    99                sysarg_t reclaim(void);
  • contrib/arch/uspace/srv/loader/loader.adl

    ra35b458 rf1380b7  
    22                /* Set task pathname */
    33                sysarg_t set_pathname(in_copy string pathname);
    4                
     4
    55                /* Set task arguments */
    66                sysarg_t set_args(in_copy stream args);
    7                
     7
    88                /* Set task initial files */
    99                sysarg_t set_files(in_copy stream files);
    10                
     10
    1111                /* Get task ID */
    1212                sysarg_t get_taskid(out_copy stream id);
    13                
     13
    1414                /* Load binary */
    1515                sysarg_t load(void);
    16                
     16
    1717                /* Run binary */
    1818                sysarg_t run(void);
  • contrib/arch/uspace/srv/loader/loader.bp

    ra35b458 rf1380b7  
    33                ?ipc_m_data_read /* task ID */
    44        } +
    5        
     5
    66        ?set_pathname {
    77                ?ipc_m_data_write /* pathname */
    88        } +
    9        
     9
    1010        ?set_args {
    1111                ?ipc_m_data_write /* arguments */
    1212        } +
    13        
     13
    1414        ?set_files {
    1515                ?ipc_m_data_write /* files */
    1616        } +
    17        
     17
    1818        ?load
    1919)* ;
  • contrib/arch/uspace/srv/ns/ns.adl

    ra35b458 rf1380b7  
    22                /* Register a clonable service or a generic service */
    33                sysarg_t ipc_m_connect_to_me(in sysarg_t service);
    4                
     4
    55                /* Connect to a clonable service or a generic service */
    66                sysarg_t ipc_m_connect_me_to(in sysarg_t service, in sysarg_t arg2, in sysarg_t arg3, in sysarg_t flags);
    7                
     7
    88                /* Share real-time clock page or kio page */
    99                sysarg_t ipc_m_share_in(in sysarg_t as_area_base, in sysarg_t as_area_size, in sysarg_t service);
    10                
     10
    1111                /* For IPC testing purposes */
    1212                sysarg_t ping(void);
    13                
     13
    1414                /* Wait for task exit and get exit status and return value */
    1515                sysarg_t task_wait(in sysarg_t id_lower, in sysarg_t id_upper, out sysarg_t status, out sysarg_t retval);
    16                
     16
    1717                /* Introduce a new loader task id in such a way it cannot be spoofed */
    1818                sysarg_t id_intro(in sysarg_t id_lower, in sysarg_t id_upper);
    19                
     19
    2020                /* Set task return value */
    2121                sysarg_t retval(in sysarg_t retval);
    22                
     22
    2323                /* Implicit connection close */
    2424                sysarg_t ipc_m_phone_hungup(void);
  • contrib/arch/uspace/srv/ns/ns.bp

    ra35b458 rf1380b7  
    88                }
    99        } +
    10        
     10
    1111        ?ipc_m_connect_me_to {
    1212                tentative {
     
    1616                }
    1717        } +
    18        
     18
    1919        ?ipc_m_share_in +
    2020        ?ping +
  • contrib/arch/uspace/srv/ns/service.adl

    ra35b458 rf1380b7  
    33                   (this call is forwarded from Naming Service or Device Mapper) */
    44                sysarg_t ipc_m_connect_me_to(void);
    5                
     5
    66                /* Close connection */
    77                sysarg_t ipc_m_phone_hungup(void);
  • contrib/arch/uspace/srv/vfs/vfs.adl

    ra35b458 rf1380b7  
    22                /* Register a filesystem driver */
    33                sysarg_t register(in_copy string name);
    4                
     4
    55                /* Mount filesystem */
    66                sysarg_t mount(in sysarg_t device, in sysarg_t flags, in sysarg_t instance, in_copy string point, in_copy string opts, in_copy string fs);
    7                
     7
    88                /* Open file */
    99                sysarg_t open(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, in_copy string path, out sysarg_t fd);
    10                
     10
    1111                /* Open file using node */
    1212                sysarg_t open_node(in sysarg_t fs_handle, in sysarg_t dev_handle, in sysarg_t index, in sysarg_t oflag, out sysarg_t fd);
    13                
     13
    1414                /* Read data from file */
    1515                sysarg_t read(in sysarg_t fd, out_copy stream data);
    16                
     16
    1717                /* Write data to file */
    1818                sysarg_t write(in sysarg_t fd, in_copy stream data);
    19                
     19
    2020                /* Seek in file */
    2121                sysarg_t seek(in sysarg_t fd, in sysarg_t offset, in sysarg_t whence);
    22                
     22
    2323                /* Truncate file */
    2424                sysarg_t truncate(in sysarg_t fd, in sysarg_t size);
    25                
     25
    2626                /* Get file metadata */
    2727                sysarg_t fstat(in sysarg_t fd, out_copy stream stat);
    28                
     28
    2929                /* Get directory entry metadata */
    3030                sysarg_t stat(in_copy string path, out_copy stream stat);
    31                
     31
    3232                /* Create directory */
    3333                sysarg_t mkdir(in sysarg_t mode, in_copy string path);
    34                
     34
    3535                /* Delete directory entry */
    3636                sysarg_t unlink(in sysarg_t lflag, in_copy string path);
    37                
     37
    3838                /* Rename directory entry */
    3939                sysarg_t rename(in_copy string old, in_copy string new);
    40                
     40
    4141                /* Flush file buffers */
    4242                sysarg_t sync(in sysarg_t fd);
    43                
     43
    4444                /* In-protocol status value */
    4545                sysarg_t ipc_m_ping(void);
    46                
     46
    4747                /* Close connection */
    4848                sysarg_t ipc_m_phone_hungup(void);
     
    5454                /* Notify filesystem that it was mounted */
    5555                sysarg_t mounted(in sysarg_t dev_handle, in_copy string opts);
    56                
     56
    5757                /* Mount filesystem */
    5858                sysarg_t mount(in sysarg_t device, in sysarg_t flags, in sysarg_t instance, in_copy string point, in_copy string opts, ...);
    59                
     59
    6060                /* Open file by node */
    6161                sysarg_t open_node(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, ...);
    62                
     62
    6363                /* Lookup file */
    6464                sysarg_t lookup(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, ...);
    65                
     65
    6666                /* Read data from file */
    6767                sysarg_t read(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t offset, out_copy stream data);
    68                
     68
    6969                /* Write data to file */
    7070                sysarg_t write(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t offset, in_copy stream data);
    71                
     71
    7272                /* Truncate file */
    7373                sysarg_t truncate(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t size);
    74                
     74
    7575                /* Get directory entry metadata */
    7676                sysarg_t stat(in sysarg_t dev_handle, in sysarg_t fs_index, out_copy stream stat);
    77                
     77
    7878                /* Flush file buffers */
    7979                sysarg_t sync(in sysarg_t dev_handle, in sysarg_t fs_index);
    80                
     80
    8181                /* Notify on file close */
    8282                sysarg_t close(in sysarg_t dev_handle, in sysarg_t fs_index);
     
    103103        inst fat fat;
    104104        inst devfs devfs;
    105        
     105
    106106        bind io_dispatcher:tmpfs to tmpfs:tmpfs;
    107107        bind io_dispatcher:fat to fat:fat;
    108108        bind io_dispatcher:devfs to devfs:devfs;
    109        
     109
    110110        bind tmpfs:vfs to io_dispatcher:vfs;
    111111        bind fat:vfs to io_dispatcher:vfs;
    112112        bind devfs:vfs to io_dispatcher:vfs;
    113        
     113
    114114        bind tmpfs:tmpfs_nested to tmpfs:tmpfs;
    115115        bind tmpfs:fat_nested to fat:fat;
    116116        bind tmpfs:devfs_nested to devfs:devfs;
    117        
     117
    118118        bind fat:tmpfs_nested to tmpfs:tmpfs;
    119119        bind fat:fat_nested to fat:fat;
    120120        bind fat:devfs_nested to devfs:devfs;
    121        
     121
    122122        delegate vfs to io_dispatcher:vfs;
    123        
     123
    124124        [/uspace/lib/libc/subsume%io_dispatcher]
    125125        [/uspace/lib/libc/subsume%tmpfs]
    126126        [/uspace/lib/libc/subsume%fat]
    127127        [/uspace/lib/libc/subsume%devfs]
    128        
     128
    129129        subsume io_dispatcher:ns to ns;
    130130        subsume tmpfs:ns to ns;
    131131        subsume fat:ns to ns;
    132132        subsume devfs:ns to ns;
    133        
     133
    134134        subsume tmpfs:rd to rd;
    135135        subsume fat:rd to rd;
    136        
     136
    137137        subsume devfs:devmap_client to devmap_client;
    138138        subsume devfs:device to device;
  • contrib/arch/uspace/srv/vfs/vfs.bp

    ra35b458 rf1380b7  
    99                }
    1010        } +
    11        
     11
    1212        ?mount {
    1313                ?ipc_m_data_write /* mount point */ ;
     
    5151                }
    5252        } +
    53        
     53
    5454        ?open {
    5555                tentative {
     
    6767                }
    6868        } +
    69        
     69
    7070        ?open_node {
    7171                alternative (fs; tmpfs; fat; devfs) {
     
    7878                }
    7979        } +
    80        
     80
    8181        ?close {
    8282                tentative {
     
    8888                }
    8989        } +
    90        
     90
    9191        ?read {
    9292                tentative {
     
    102102                }
    103103        } +
    104        
     104
    105105        ?write {
    106106                tentative {
     
    116116                }
    117117        } +
    118        
     118
    119119        ?truncate {
    120120                tentative {
     
    126126                }
    127127        } +
    128        
     128
    129129        ?fstat {
    130130                tentative {
     
    140140                }
    141141        } +
    142        
     142
    143143        ?stat {
    144144                ?ipc_m_data_write /* path */ ;
     
    156156                }
    157157        } +
    158        
     158
    159159        ?mkdir {
    160160                ?ipc_m_data_write /* path */ ;
     
    165165                }
    166166        } +
    167        
     167
    168168        ?unlink {
    169169                ?ipc_m_data_write /* path */ ;
     
    174174                }
    175175        } +
    176        
     176
    177177        ?rename {
    178178                ?ipc_m_data_write /* old path */ ;
     
    198198                }
    199199        } +
    200        
     200
    201201        ?sync {
    202202                tentative {
     
    206206                }
    207207        } +
    208        
     208
    209209        ?seek
    210        
     210
    211211)* ;
    212212?ipc_m_phone_hungup
  • contrib/highlight/adl.syntax

    ra35b458 rf1380b7  
    66        keyword whole frame yellow
    77        keyword whole architecture yellow
    8        
     8
    99        keyword whole system yellow
    1010        keyword whole extends yellow
    1111        keyword whole version yellow
    12        
     12
    1313        keyword whole inst yellow
    1414        keyword whole bind yellow
     
    1616        keyword whole subsume yellow
    1717        keyword whole delegate yellow
    18        
     18
    1919        keyword whole sysarg_t yellow
    2020        keyword whole string yellow
    2121        keyword whole stream yellow
    2222        keyword whole void yellow
    23        
     23
    2424        keyword whole in yellow
    2525        keyword whole in_copy yellow
    2626        keyword whole out yellow
    2727        keyword whole out_copy yellow
    28        
     28
    2929        keyword whole protocol yellow
    3030        keyword whole initialization yellow
     
    3232        keyword whole provides yellow
    3333        keyword whole requires yellow
    34        
     34
    3535        keyword /\* brown
    3636        keyword \*/ brown
    3737        keyword // brown
    38        
     38
    3939        keyword { brightcyan
    4040        keyword } brightcyan
    41        
     41
    4242        keyword ( brightcyan
    4343        keyword ) brightcyan
    44        
     44
    4545        keyword , brightcyan
    4646        keyword : brightcyan
    4747        keyword ; brightmagenta
    48        
     48
    4949        keyword [ brightblue black
    5050        keyword ] brightblue black
  • contrib/highlight/bp.syntax

    ra35b458 rf1380b7  
    66        keyword whole tentative yellow
    77        keyword whole alternative yellow
    8        
     8
    99        keyword /\* brown
    1010        keyword \*/ brown
    1111        keyword # brown
    12        
     12
    1313        keyword ! brightred
    1414        keyword ? brightgreen
    15        
     15
    1616        keyword ( brightcyan
    1717        keyword ) brightcyan
    18        
     18
    1919        keyword { brightcyan
    2020        keyword } brightcyan
    21        
     21
    2222        keyword \+ brightmagenta
    2323        keyword ; brightmagenta
    2424        keyword \* brightmagenta
    2525        keyword | brightmagenta
    26        
     26
    2727        keyword \. brightcyan
    28        
     28
    2929        keyword [ brightblue black
    3030        keyword ] brightblue black
  • contrib/tools/font/bdf2c.pl

    ra35b458 rf1380b7  
    5353        /^FONTBOUNDINGBOX\s/ and do {
    5454                ($skip, $width, $height, $offset_x, $offset_y) = (split);
    55                
     55
    5656                die("Font width is not 8px\n") if ($width != 8);
    5757                die("Font height is not 16px\n") if ($height != 16);
     
    7070                my @glyph = ();
    7171                my $y;
    72                
     72
    7373                # Add empty lines at top
    7474                my $empties = $height + $offset_y - $goffset_y - $gheight;
    75                
     75
    7676                for ($y = 0; $y < $empties; $y++) {
    7777                        $glyph[$y] = 0;
    7878                }
    79                
     79
    8080                # Scan the hex bitmap
    8181                for ($y = $empties; $y < $empties + $gheight; $y++) {
     
    8383                        $glyph[$y] = hex(substr($_, 0, 2)) >> $goffset_x;
    8484                }
    85                
     85
    8686                # Add empty lines at bottom
    8787                my $fill = $height - $gheight - $empties;
     
    8989                        $glyph[$y] = 0;
    9090                }
    91                
     91
    9292                if ($index != 0) {
    9393                        $glyphs[$index] = (\@glyph);
     
    125125                                print "\t\treturn (ch - " . ($start - $start_pos) . ");\n";
    126126                        }
    127                        
     127
    128128                        print "\t\n";
    129129                }
    130                
     130
    131131                $start = $index;
    132132                $start_pos = $pos;
    133133        }
    134        
     134
    135135        $pos++;
    136136        $prev = $index;
     
    145145for $index (@chars) {
    146146        print "\n\t{";
    147        
     147
    148148        my $y;
    149149        for ($y = 0; $y < $height; $y++) {
     
    151151                printf "0x%.2x", $glyphs[$index]->[$y];
    152152        }
    153        
     153
    154154        print "},";
    155155}
  • doxygen/doxygen.cfg.diff

    ra35b458 rf1380b7  
    44 # title of most generated pages and in a few other places.
    55 # The default value is: My Project.
    6  
     6
    77-PROJECT_NAME           = "My Project"
    88+PROJECT_NAME           = "HelenOS"
    9  
     9
    1010 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
    1111 # could be handy for archiving the generated documentation or if some version
     
    1313 # for a project that appears at the top of each page and should give viewer a
    1414 # quick idea about the purpose of the project. Keep the description short.
    15  
     15
    1616-PROJECT_BRIEF          =
    1717+PROJECT_BRIEF          = " HelenOS is a portable microkernel-based multiserver operating system designed and implemented from scratch."
    18  
     18
    1919 # With the PROJECT_LOGO tag one can specify a logo or an icon that is included
    2020 # in the documentation. The maximum height of the logo should not exceed 55
     
    2222 # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
    2323 # Note: If this tag is empty the current directory is searched.
    24  
     24
    2525-INPUT                  =
    2626+INPUT                  = ..
    27  
     27
    2828 # This tag can be used to specify the character encoding of the source files
    2929 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
     
    3131 # be searched for input files as well.
    3232 # The default value is: NO.
    33  
     33
    3434-RECURSIVE              = NO
    3535+RECURSIVE              = YES
    36  
     36
    3737 # The EXCLUDE tag can be used to specify files and/or directories that should be
    3838 # excluded from the INPUT source files. This way you can easily exclude a
  • kernel/Makefile

    ra35b458 rf1380b7  
    308308                test/thread/thread1.c \
    309309                test/smpcall/smpcall1.c
    310        
     310
    311311        ifeq ($(KARCH),mips32)
    312312                GENERIC_SOURCES += test/debug/mips1.c
     
    314314                GENERIC_SOURCES += test/debug/mips1_skip.c
    315315        endif
    316        
     316
    317317        ifeq ($(KARCH),ia64)
    318318                GENERIC_SOURCES += test/mm/purge1.c
     
    320320                GENERIC_SOURCES += test/mm/purge1_skip.c
    321321        endif
    322        
     322
    323323endif
    324324
     
    428428        $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
    429429        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    430        
     430
    431431        # Do it once again, this time to get correct even the symbols
    432432        # on architectures that have bss after symtab
    433        
     433
    434434        echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) $(AS_CFLAGS) -x assembler -c -o $(SIZEOK_MAP) -
    435435ifeq ($(CONFIG_LTO),y)
  • kernel/arch/abs32le/Makefile.inc

    ra35b458 rf1380b7  
    3333                ATSIGN = %
    3434        endif
    35        
     35
    3636        ifeq ($(CROSS_TARGET),mips32)
    3737                COMMON_CFLAGS += -mno-abicalls
  • kernel/arch/abs32le/_link.ld.in

    ra35b458 rf1380b7  
    1616                *(.bss);                        /* uninitialized static variables */
    1717                *(COMMON);                      /* global variables */
    18                
     18
    1919                *(.rodata*);
    2020                *(.sdata);
     
    2828                *(.scommon);
    2929        }
    30        
     30
    3131        kdata_end = .;
    32        
     32
    3333        /DISCARD/ : {
    3434                *(.mdebug*);
  • kernel/arch/amd64/_link.ld.in

    ra35b458 rf1380b7  
    1717                *(K_TEXT_START);
    1818                unmapped_ktext_end = .;
    19                
     19
    2020                unmapped_kdata_start = .;
    2121                *(K_DATA_START);
     
    2323                unmapped_kdata_end = .;
    2424        }
    25        
     25
    2626        .mapped (PA2KA(BOOT_OFFSET)+SIZEOF(.unmapped)) : AT (SIZEOF(.unmapped)) {
    2727                ktext_start = .;
    2828                *(.text .text.*);
    2929                ktext_end = .;
    30                
     30
    3131                kdata_start = .;
    3232                *(.data);              /* initialized data */
     
    4343                QUAD(unmapped_kdata_end - unmapped_kdata_start);
    4444                *(COMMON);      /* global variables */
    45                
     45
    4646                . = ALIGN(8);
    4747                symbol_table = .;
    4848                *(symtab.*);    /* Symbol table, must be LAST symbol!*/
    49                
     49
    5050                *(.bss);        /* uninitialized static variables */
    51                
     51
    5252                kdata_end = .;
    5353        }
    54        
     54
    5555#ifdef CONFIG_LINE_DEBUG
    5656        .comment 0 : { *(.comment); }
     
    6565        .debug_str 0 : { *(.debug_str); }
    6666#endif
    67        
     67
    6868        /DISCARD/ : {
    6969                *(*);
    7070        }
    71        
     71
    7272#ifdef CONFIG_SMP
    7373        _hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
     
    7676        protected_ap_gdtr = PA2KA(ap_gdtr);
    7777#endif /* CONFIG_SMP */
    78        
     78
    7979}
  • kernel/arch/amd64/src/boot/vesa_ret.inc

    ra35b458 rf1380b7  
    33        cli
    44        cld
    5        
     5
    66        /* Initialize stack pointer */
    77        movl $START_STACK, %esp
    8        
     8
    99        /* Kernel data + stack */
    1010        movw $GDT_SELECTOR(KDATA_DES), %cx
     
    1212        movw %cx, %ds
    1313        movw %cx, %ss
    14        
     14
    1515        /*
    1616         * Simics seems to remove hidden part of GS on entering user mode
    1717         * when _visible_ part of GS does not point to user-mode segment.
    1818         */
    19        
     19
    2020        movw $GDT_SELECTOR(UDATA_DES), %cx
    2121        movw %cx, %fs
    2222        movw %cx, %gs
    23        
     23
    2424        jmpl $GDT_SELECTOR(KTEXT32_DES), $vesa_meeting_point
  • kernel/arch/arm32/_link.ld.in

    ra35b458 rf1380b7  
    4040                *(.bss);                        /* uninitialized static variables */
    4141                *(COMMON);                      /* global variables */
    42                
     42
    4343                *(.rodata*);
    4444                *(.sdata);
     
    5252                *(.scommon);
    5353        }
    54        
     54
    5555        kdata_end = .;
    56        
     56
    5757        /DISCARD/ : {
    5858          *(.mdebug*);
  • kernel/arch/ia32/_link.ld.in

    ra35b458 rf1380b7  
    1717                *(K_TEXT_START);
    1818                unmapped_ktext_end = .;
    19        
     19
    2020                unmapped_kdata_start = .;
    2121                *(K_DATA_START);
    2222                unmapped_kdata_end = .;
    2323        }
    24        
     24
    2525        .mapped (PA2KA(BOOT_OFFSET)+SIZEOF(.unmapped)): AT (SIZEOF(.unmapped)) {
    2626                ktext_start = .;
    2727                *(.text .text.*);
    2828                ktext_end = .;
    29                
     29
    3030                kdata_start = .;
    3131                *(.data);               /* initialized data */
     
    4848                kdata_end = .;
    4949        }
    50        
     50
    5151#ifdef CONFIG_LINE_DEBUG
    5252        .comment 0 : { *(.comment); }
     
    6161        .debug_str 0 : { *(.debug_str); }
    6262#endif
    63        
     63
    6464        /DISCARD/ : {
    6565                *(*);
    6666        }
    67        
     67
    6868#ifdef CONFIG_SMP
    69        
     69
    7070        _hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
    7171        ap_boot = unmapped_ap_boot - BOOT_OFFSET + AP_BOOT_OFFSET;
    7272        ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;
    7373        protected_ap_gdtr = PA2KA(ap_gdtr);
    74        
     74
    7575#endif /* CONFIG_SMP */
    76        
     76
    7777}
  • kernel/arch/ia32/src/boot/vesa_prot.inc

    ra35b458 rf1380b7  
    55
    66        /* Copy real mode VESA initialization code */
    7        
     7
    88        pm_status $status_vesa_copy
    9        
     9
    1010        mov $vesa_init, %esi
    1111        mov $VESA_INIT_SEGMENT << 4, %edi
    1212        mov $e_vesa_init - vesa_init, %ecx
    1313        rep movsb
    14        
     14
    1515        /* Check for multiboot command line */
    16        
     16
    1717        pm_status $status_multiboot_cmdline
    18        
     18
    1919        mov multiboot_eax, %eax
    2020        cmp $MULTIBOOT_LOADER_MAGIC, %eax
    2121        jne no_cmdline
    22        
     22
    2323        mov multiboot_ebx, %ebx
    2424        mov (%ebx), %eax
    2525        bt $MBINFO_BIT_CMDLINE, %eax
    2626        jnc no_cmdline
    27        
     27
    2828        /* Skip the kernel path in command line */
    29        
     29
    3030        mov MBINFO_OFFSET_CMDLINE(%ebx), %esi
    31        
     31
    3232        skip_loop:
    3333                lodsb
    34                
     34
    3535                cmp $0, %al
    3636                je no_cmdline
    37                
     37
    3838                cmp $' ', %al
    3939                je skip_loop_done
    40                
     40
    4141                jmp skip_loop
    4242        skip_loop_done:
    43        
     43
    4444        space_loop:
    4545                mov (%esi), %al
    46                
     46
    4747                cmp $0, %al
    4848                je no_cmdline
    49                
     49
    5050                cmp $' ', %al
    5151                jne space_loop_done
    52                
     52
    5353                inc %esi
    5454                jmp space_loop
    5555        space_loop_done:
    56        
     56
    5757        /* Copy at most 23 characters from command line */
    58        
     58
    5959        mov $VESA_INIT_SEGMENT << 4, %edi
    6060        add $default_mode - vesa_init, %edi
    6161        mov $23, %ecx
    62        
     62
    6363        cmd_loop:
    6464                lodsb
    6565                stosb
    66                
     66
    6767                cmp $0, %al
    6868                je cmd_loop_done
    69                
     69
    7070                loop cmd_loop
    7171        cmd_loop_done:
    72        
     72
    7373        /* Zero termination */
    74        
     74
    7575        xor %eax, %eax
    7676        stosb
    77        
     77
    7878        no_cmdline:
    79        
     79
    8080        /* Jump to the real mode */
    81        
     81
    8282        pm_status $status_vesa_real
    83        
     83
    8484        mov $VESA_INIT_SEGMENT << 4, %edi
    8585        jmpl *%edi
    86        
     86
    8787        vesa_meeting_point:
    8888                /* Returned back to protected mode */
    89                
     89
    9090                /*
    9191                 * Initialize Global Descriptor Table and
     
    9494                lgdtl bootstrap_gdtr
    9595                lidtl bootstrap_idtr
    96                
     96
    9797                movzx %ax, %ecx
    9898                mov %ecx, KA2PA(bfb_scanline)
    99                
     99
    100100                shr $16, %eax
    101101                mov %ax, KA2PA(bfb_bpp)
    102                
     102
    103103                movzx %bx, %ecx
    104104                mov %ecx, KA2PA(bfb_height)
    105                
     105
    106106                shr $16, %ebx
    107107                mov %ebx, KA2PA(bfb_width)
    108                
     108
    109109                mov %dl, KA2PA(bfb_green_pos)
    110                
     110
    111111                shr $8, %edx
    112112                mov %dl, KA2PA(bfb_green_size)
    113                
     113
    114114                shr $8, %edx
    115115                mov %dl, KA2PA(bfb_red_pos)
    116                
     116
    117117                shr $8, %edx
    118118                mov %dl, KA2PA(bfb_red_size)
    119                
     119
    120120                mov %esi, %edx
    121121                mov %dl, KA2PA(bfb_blue_pos)
    122                
     122
    123123                shr $8, %edx
    124124                mov %dl, KA2PA(bfb_blue_size)
    125                
     125
    126126                mov %edi, KA2PA(bfb_addr)
    127127#endif
  • kernel/arch/ia32/src/boot/vesa_real.inc

    ra35b458 rf1380b7  
    3131vesa_init:
    3232        lidtl vesa_idtr
    33        
     33
    3434        mov $GDT_SELECTOR(VESA_INIT_DATA_DES), %bx
    35        
     35
    3636        mov %bx, %es
    3737        mov %bx, %fs
     
    3939        mov %bx, %ds
    4040        mov %bx, %ss
    41        
     41
    4242        jmp $GDT_SELECTOR(VESA_INIT_CODE_DES), $vesa_init_real - vesa_init
    4343
     
    5151        and $~CR0_PE, %eax
    5252        mov %eax, %cr0
    53        
     53
    5454        jmp $VESA_INIT_SEGMENT, $vesa_init_real2 - vesa_init
    5555
    5656vesa_init_real2:
    5757        mov $VESA_INIT_SEGMENT, %bx
    58        
     58
    5959        mov %bx, %es
    6060        mov %bx, %fs
     
    6262        mov %bx, %ds
    6363        mov %bx, %ss
    64        
     64
    6565        movl %esp, %eax
    6666        movl $0x0000fffc, %esp
    6767        movl $0x0000fffc, %ebp
    6868        pushl %eax
    69        
     69
    7070        /* Parse default mode string */
    71        
     71
    7272        mov $default_mode - vesa_init, %di
    7373        xor %eax, %eax
    7474        xor %ebx, %ebx
    75        
     75
    7676        mov $8, %ecx
    7777        parse_width:
    7878                mov (%di), %al
    79                
     79
    8080                /* Check for digit */
    81                
     81
    8282                cmp $'0', %al
    8383                jb parse_width_done
    84                
     84
    8585                cmp $'9', %al
    8686                ja parse_width_done
    87                
     87
    8888                sub $'0', %al
    89                
     89
    9090                /* Multiply default_width by 10 and add digit */
    91                
     91
    9292                mov default_width - vesa_init, %bx
    9393                lea (%ebx, %ebx, 4), %ebx
     
    9595                add %ax, %bx
    9696                mov %bx, default_width - vesa_init
    97                
     97
    9898                inc %di
    9999                loop parse_width
    100100        parse_width_done:
    101        
     101
    102102        mov (%di), %al
    103103        cmp $0, %al
    104104        jz parse_done
    105105        inc %di
    106        
     106
    107107        mov $8, %ecx
    108108        parse_height:
    109109                mov (%di), %al
    110                
     110
    111111                /* Check for digit */
    112                
     112
    113113                cmp $'0', %al
    114114                jb parse_height_done
    115                
     115
    116116                cmp $'9', %al
    117117                ja parse_height_done
    118                
     118
    119119                sub $'0', %al
    120                
     120
    121121                /* Multiply default_height by 10 and add digit */
    122                
     122
    123123                mov default_height - vesa_init, %bx
    124124                lea (%ebx, %ebx, 4), %ebx
     
    126126                add %ax, %bx
    127127                mov %bx, default_height - vesa_init
    128                
     128
    129129                inc %di
    130130                loop parse_height
    131131        parse_height_done:
    132        
     132
    133133        mov (%di), %al
    134134        cmp $0, %al
    135135        jz parse_done
    136136        inc %di
    137        
     137
    138138        mov $4, %ecx
    139139        parse_bpp:
    140140                mov (%di), %al
    141                
     141
    142142                /* Check for digit */
    143                
     143
    144144                cmp $'0', %al
    145145                jb parse_bpp_done
    146                
     146
    147147                cmp $'9', %al
    148148                ja parse_bpp_done
    149                
     149
    150150                sub $'0', %al
    151                
     151
    152152                /* Multiply default_bpp by 10 and add digit */
    153                
     153
    154154                mov default_bpp - vesa_init, %bx
    155155                lea (%ebx, %ebx, 4), %ebx
     
    157157                add %ax, %bx
    158158                mov %bx, default_bpp - vesa_init
    159                
     159
    160160                inc %di
    161161                loop parse_bpp
    162162        parse_bpp_done:
    163        
     163
    164164        parse_done:
    165        
     165
    166166        mov $VESA_GET_INFO, %ax
    167167        mov $e_vesa_init - vesa_init, %di
     
    178178        movl $0x32454256, (%di)
    179179        int $0x10
    180        
     180
    181181        pop %di
    182182        cmp $VESA_OK, %al
    183183        jnz no_mode
    184        
     184
    185185        mov 2 + VESA_MODE_LIST_PTR_OFFSET(%di), %si
    186186        mov %si, %gs
    187187        mov VESA_MODE_LIST_PTR_OFFSET(%di), %si
    188        
     188
    189189        add $VESA_INFO_SIZE, %di
    190        
     190
    191191        next_mode:
    192192                /* Try next mode */
    193                
     193
    194194                mov %gs:(%si), %cx
    195195                cmp $VESA_END_OF_MODES, %cx
    196196                je no_mode
    197                
     197
    198198                inc %si
    199199                inc %si
     
    203203                mov $VESA_GET_MODE_INFO, %ax
    204204                int $0x10
    205                
     205
    206206                pop %si
    207207                pop %di
     
    209209                cmp $VESA_OK, %al
    210210                jne no_mode
    211                
     211
    212212                /*
    213213                 * Check for proper attributes (supported,
    214214                 * color, graphics, linear framebuffer).
    215215                 */
    216                
     216
    217217                mov VESA_MODE_ATTRIBUTES_OFFSET(%di), %ax
    218218                and $0x99, %ax
    219219                cmp $0x99, %ax
    220220                jne next_mode
    221                
     221
    222222                /* Check for proper resolution */
    223                
     223
    224224                mov default_width - vesa_init, %ax
    225225                cmp VESA_MODE_WIDTH_OFFSET(%di), %ax
    226226                jne next_mode
    227                
     227
    228228                mov default_height - vesa_init, %ax
    229229                cmp VESA_MODE_HEIGHT_OFFSET(%di), %ax
    230230                jne next_mode
    231                
     231
    232232                /* Check for proper bpp */
    233                
     233
    234234                mov default_bpp - vesa_init, %al
    235235                cmp VESA_MODE_BPP_OFFSET(%di), %al
    236236                je set_mode
    237                
     237
    238238                mov $24, %al
    239239                cmp default_bpp - vesa_init, %al
    240240                jne next_mode
    241                
     241
    242242                /* For 24 bpp modes accept also 32 bit bpp */
    243                
     243
    244244                mov $32, %al
    245245                cmp VESA_MODE_BPP_OFFSET(%di), %al
    246246                jne next_mode
    247        
     247
    248248        set_mode:
    249249                mov %cx, %bx
     
    252252                mov $VESA_SET_MODE, %ax
    253253                int $0x10
    254                
     254
    255255                pop %di
    256256                cmp $VESA_OK, %al
    257257                jnz no_mode
    258                
     258
    259259                /* Set 3:2:3 VGA palette */
    260                
     260
    261261                mov VESA_MODE_BPP_OFFSET(%di), %al
    262262                cmp $8, %al
    263263                jnz vga_not_set
    264                
     264
    265265                mov VESA_MODE_ATTRIBUTES_OFFSET(%di), %ax
    266266                push %di
    267267                mov $vga323 - vesa_init, %di
    268268                mov $0x100, %ecx
    269                
     269
    270270                /* Test if VGA compatible registers are present */
    271271                bt $5, %ax
    272272                jnc vga_compat
    273                
     273
    274274                        /* Use VESA routine to set the palette */
    275                        
     275
    276276                        mov $VESA_SET_PALETTE, %ax
    277277                        xor %bl, %bl
    278278                        xor %dx, %dx
    279279                        int $0x10
    280                        
     280
    281281                        cmp $0x00, %ah
    282282                        je vga_not_compat
    283                
     283
    284284                vga_compat:
    285                        
     285
    286286                        /* Use VGA registers to set the palette */
    287                        
     287
    288288                        movw $0x3c6, %dx  /* set palette mask */
    289289                        movb $0xff, %al
    290290                        outb %al, %dx
    291                        
     291
    292292                        movw $0x3c8, %dx  /* first index to set */
    293293                        xor %al, %al
    294294                        outb %al, %dx
    295                        
     295
    296296                        movw $0x3c9, %dx  /* data port */
    297                        
     297
    298298                        vga_loop:
    299299                                movb %es:2(%di), %al
    300300                                outb %al, %dx
    301                                
     301
    302302                                movb %es:1(%di), %al
    303303                                outb %al, %dx
    304                                
     304
    305305                                movb %es:(%di), %al
    306306                                outb %al, %dx
    307                                
     307
    308308                                addw $4, %di
    309309                        loop vga_loop
    310                
     310
    311311                vga_not_compat:
    312                
     312
    313313                        pop %di
    314                
     314
    315315                vga_not_set:
    316                
     316
    317317                /*
    318318                 * Store mode parameters:
     
    323323                 *  edi = linear frame buffer
    324324                 */
    325                
     325
    326326                mov VESA_MODE_BPP_OFFSET(%di), %al
    327327                xor %ah, %ah
    328328                shl $16, %eax
    329329                mov VESA_MODE_SCANLINE_OFFSET(%di), %ax
    330                
     330
    331331                mov VESA_MODE_WIDTH_OFFSET(%di), %bx
    332332                shl $16, %ebx
    333333                mov VESA_MODE_HEIGHT_OFFSET(%di), %bx
    334                
     334
    335335                mov VESA_MODE_BLUE_MASK_OFFSET(%di), %dl
    336336                shl $8, %edx
    337337                mov VESA_MODE_BLUE_POS_OFFSET(%di), %dl
    338338                mov %edx, %esi
    339                
     339
    340340                mov VESA_MODE_RED_MASK_OFFSET(%di), %dl
    341341                shl $8, %edx
    342342                mov VESA_MODE_RED_POS_OFFSET(%di), %dl
    343                
     343
    344344                shl $8, %edx
    345345                mov VESA_MODE_GREEN_MASK_OFFSET(%di), %dl
    346346                shl $8, %edx
    347347                mov VESA_MODE_GREEN_POS_OFFSET(%di), %dl
    348                
     348
    349349                mov VESA_MODE_PHADDR_OFFSET(%di), %edi
    350                
     350
    351351                vesa_leave_real:
    352                
     352
    353353                        mov %cr0, %ecx
    354354                        or $CR0_PE, %ecx
    355355                        mov %ecx, %cr0
    356                        
     356
    357357                        jmp vesa_leave_real2
    358                        
     358
    359359                vesa_leave_real2:
    360                
     360
    361361                        ljmpl $GDT_SELECTOR(KTEXT32_DES), $(vesa_init_protected - vesa_init + VESA_INIT_SEGMENT << 4)
    362        
     362
    363363        no_mode:
    364                
     364
    365365                /* No prefered mode found */
    366                
     366
    367367                mov $0x111, %cx
    368368                push %di
     
    370370                mov $VESA_GET_MODE_INFO, %ax
    371371                int $0x10
    372                
     372
    373373                pop %cx
    374374                pop %di
     
    376376                jnz text_mode
    377377                jz set_mode  /* force relative jump */
    378        
     378
    379379        text_mode:
    380                
     380
    381381                /* Reset to EGA text mode (because of problems with VESA) */
    382                
     382
    383383                mov $0x0003, %ax
    384384                int $0x10
    385                
     385
    386386                xor %eax, %eax
    387387                xor %ebx, %ebx
    388388                xor %edx, %edx
    389389                xor %edi, %edi
    390                
     390
    391391                jz vesa_leave_real  /* force relative jump */
    392392
  • kernel/arch/ia32/src/boot/vesa_ret.inc

    ra35b458 rf1380b7  
    33        cli
    44        cld
    5        
     5
    66        /* Initialize stack pointer */
    77        movl $START_STACK, %esp
    8        
     8
    99        /* Kernel data + stack */
    1010        movw $GDT_SELECTOR(KDATA_DES), %cx
     
    1414        movw %cx, %ds
    1515        movw %cx, %ss
    16        
     16
    1717        jmpl $GDT_SELECTOR(KTEXT_DES), $vesa_meeting_point
  • kernel/arch/ia64/_link.ld.in

    ra35b458 rf1380b7  
    1818                *(.text .text.*)
    1919                ktext_end = .;
    20                
     20
    2121                kdata_start = .;
    2222                *(K_DATA_START)
     
    3737                *(.bss)
    3838                *(COMMON);
    39                
     39
    4040                . = ALIGN(8);
    4141                symbol_table = .;
    4242                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
    43                
     43
    4444                kdata_end = .;
    4545        }
    46        
     46
    4747        /DISCARD/ : {
    4848                *(*);
  • kernel/arch/mips32/_link.ld.in

    ra35b458 rf1380b7  
    5151        .lit8 : { *(.lit8) }
    5252        .lit4 : { *(.lit4) }
    53        
     53
    5454        kdata_end = .;
    55        
     55
    5656        /DISCARD/ : {
    5757                *(.mdebug*);
  • kernel/arch/ppc32/_link.ld.in

    ra35b458 rf1380b7  
    2222                *(K_UNMAPPED_TEXT_START);
    2323                unmapped_ktext_end = .;
    24                
     24
    2525                unmapped_kdata_start = .;
    2626                *(K_UNMAPPED_DATA_START);
    2727                unmapped_kdata_start = .;
    2828        }
    29        
     29
    3030        .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
    3131                ktext_start = .;
     
    3333                *(.text);
    3434                ktext_end = .;
    35                
     35
    3636                kdata_start = .;
    3737                *(K_DATA_START);
     
    4949                *(.bss);        /* uninitialized static variables */
    5050                *(COMMON);      /* global variables */
    51                
     51
    5252                . = ALIGN(8);
    5353                symbol_table = .;
    5454                *(symtab.*);    /* Symbol table, must be LAST symbol!*/
    55                
     55
    5656                kdata_end = .;
    5757        }
  • kernel/arch/riscv64/_link.ld.in

    ra35b458 rf1380b7  
    1919                *(.text);
    2020                ktext_end = .;
    21                
     21
    2222                kdata_start = .;
    2323                *(.data);                       /* initialized data */
     
    4040                kdata_end = .;
    4141        }
    42        
     42
    4343        /DISCARD/ : {
    4444                *(.mdebug*);
  • kernel/arch/sparc64/_link.ld.in

    ra35b458 rf1380b7  
    1717                *(.text .text.*);
    1818                ktext_end = .;
    19                
     19
    2020                kdata_start = .;
    2121                *(K_DATA_START)
     
    3434                *(.bss);                    /* uninitialized static variables */
    3535                *(COMMON);                  /* global variables */
    36                
     36
    3737                . = ALIGN(8);
    3838                symbol_table = .;
    3939                *(symtab.*);                /* Symbol table, must be LAST symbol!*/
    40                
     40
    4141                kdata_end = .;
    4242        }
    43        
     43
    4444        /DISCARD/ : {
    4545                *(*);
    4646        }
    47        
     47
    4848}
  • tools/toolchain-binutils-2.23.1.patch

    ra35b458 rf1380b7  
    127127   ia64-*-hpux*)                                fmt=elf em=hpux ;;
    128128   ia64-*-netbsd*)                      fmt=elf em=nbsd ;;
    129  
     129
    130130@@ -304,7 +305,7 @@
    131131   mips-*-irix*)                                fmt=ecoff em=irix ;;
  • uspace/app/bdsh/cmds/modules/printf/TODO

    ra35b458 rf1380b7  
    1111 * Add width/precision options for number printings
    1212 * Add more format flags (%f %b ...)
    13  
  • uspace/app/vuhid/Makefile

    ra35b458 rf1380b7  
    4545        stdreq.c \
    4646        $(SOURCES_INTERFACES)
    47        
     47
    4848
    4949include $(USPACE_PREFIX)/Makefile.common
  • uspace/dist/src/bithenge/gif/gif.bh

    ra35b458 rf1380b7  
    8686        .width <- word;
    8787        .height <- word;
    88        
     88
    8989        <- struct {
    9090                .use_local_color_map <- bit;
     
    9393                .bits_per_pixel <- (in + 1) <- uint_be(3);
    9494        } <- bits_be <- known_length(1);
    95        
     95
    9696        if (.use_local_color_map) {
    9797                .local_color_map <- gif_color_map_from_bits_per_pixel(.bits_per_pixel);
    9898        }
    99        
     99
    100100        .lzw_initial_size <- uint8;
    101101        .lzw_data <- generic_data_block;
  • uspace/lib/c/arch/abs32le/_link.ld.in

    ra35b458 rf1380b7  
    1818        . = 0x1000 + SIZEOF_HEADERS;
    1919#endif
    20        
     20
    2121        .text : {
    2222                *(.text .text.*);
    2323                *(.rodata .rodata.*);
    2424        } :text
    25        
     25
    2626#ifdef LOADER
    2727        .interp : {
     
    2929        } :interp :text
    3030#endif
    31        
     31
    3232        . = . + 0x1000;
    33        
     33
    3434        .data : {
    3535                *(.data);
    3636                *(.data.rel*);
    3737        } :data
    38        
     38
    3939        .tdata : {
    4040                _tdata_start = .;
     
    4646                _tbss_end = .;
    4747        } :data
    48        
     48
    4949        _tls_alignment = ALIGNOF(.tdata);
    50        
     50
    5151        .sbss : {
    5252                *(.scommon);
    5353                *(.sbss);
    5454        }
    55        
     55
    5656        .bss : {
    5757                *(COMMON);
    5858                *(.bss);
    5959        } :data
    60        
     60
    6161        /DISCARD/ : {
    6262                *(*);
  • uspace/lib/c/arch/amd64/_link.ld.in

    ra35b458 rf1380b7  
    1919        . = 0x1000 + SIZEOF_HEADERS;
    2020#endif
    21        
     21
    2222        .init : {
    2323                *(.init);
    2424        } :text
    25        
     25
    2626        .text : {
    2727                *(.text .text.*);
    2828                *(.rodata .rodata.*);
    2929        } :text
    30        
     30
    3131#ifdef LOADER
    3232        .interp : {
     
    3434        } :interp :text
    3535#endif
    36        
     36
    3737        . = . + 0x1000;
    38        
     38
    3939        .data : {
    4040                *(.data);
    4141                *(.data.rel*);
    4242        } :data
    43        
     43
    4444        .tdata : {
    4545                _tdata_start = .;
     
    5050                _tbss_end = .;
    5151        } :data
    52        
     52
    5353        _tls_alignment = ALIGNOF(.tdata);
    54        
     54
    5555        .bss : {
    5656                *(COMMON);
    5757                *(.bss);
    5858        } :data
    59        
     59
    6060#ifdef CONFIG_LINE_DEBUG
    6161        .comment 0 : { *(.comment); } :debug
     
    7070        .debug_str 0 : { *(.debug_str); } :debug
    7171#endif
    72        
     72
    7373        /DISCARD/ : {
    7474                *(*);
  • uspace/lib/c/arch/arm32/_link.ld.in

    ra35b458 rf1380b7  
    1818        . = 0x1000 + SIZEOF_HEADERS;
    1919#endif
    20        
     20
    2121        .init : {
    2222                *(.init);
    2323        } :text
    24        
     24
    2525        .text : {
    2626                *(.text .text.*);
    2727                *(.rodata .rodata.*);
    2828        } :text
    29        
     29
    3030#ifdef LOADER
    3131        .interp : {
     
    3333        } :interp :text
    3434#endif
    35        
     35
    3636        . = . + 0x1000;
    37        
     37
    3838        .data : {
    3939                *(.opd);
     
    4141                *(.sdata);
    4242        } :data
    43        
     43
    4444        .tdata : {
    4545                _tdata_start = .;
     
    5050                _tbss_end = .;
    5151        } :data
    52        
     52
    5353        _tls_alignment = ALIGNOF(.tdata);
    54        
     54
    5555        .bss : {
    5656                *(.sbss);
     
    5959                *(.bss);
    6060        } :data
    61        
     61
    6262        /DISCARD/ : {
    6363                *(*);
  • uspace/lib/c/arch/ia32/_link.ld.in

    ra35b458 rf1380b7  
    2525        . = 0x1000 + SIZEOF_HEADERS;
    2626#endif
    27        
     27
    2828        .init : {
    2929                *(.init);
    3030        } :text
    31        
     31
    3232        .text : {
    3333                *(.text .text.*);
    3434                *(.rodata .rodata.*);
    3535        } :text
    36        
     36
    3737#if defined(SHLIB) || defined(DLEXE)
    3838        .rel.plt : {
     
    4646                *(.rel.*);
    4747        } :text
    48        
     48
    4949        .plt : {
    5050                *(.plt);
    5151        } :text
    52        
     52
    5353        .dynsym : {
    5454                *(.dynsym);
    5555        } :text
    56        
     56
    5757        .dynstr : {
    5858                *(.dynstr);
    5959        } :text
    60        
     60
    6161        .hash : {
    6262                *(.hash);
    6363        } :text
    6464#endif
    65        
     65
    6666#if defined(LOADER) || defined(DLEXE)
    6767        .interp : {
     
    6969        } :interp :text
    7070#endif
    71        
     71
    7272        . = . + 0x1000;
    73        
     73
    7474#if defined(SHLIB) || defined(DLEXE)
    7575        .dynamic : {
     
    7777        } :data :dynamic
    7878#endif
    79        
     79
    8080        .data : {
    8181                *(.data);
    8282        } :data
    83        
     83
    8484#if defined(SHLIB) || defined(DLEXE)
    8585        .data.rel : {
    8686                *(.data.rel .data.rel.*);
    8787        } :data
    88        
     88
    8989        .got : {
    9090                *(.got);
    9191        } :data
    92        
     92
    9393        .got.plt : {
    9494                *(.got.plt);
    9595        } :data
    9696#endif
    97        
     97
    9898        .tdata : {
    9999                _tdata_start = .;
     
    107107                _tbss_end = .;
    108108        } :data :tls
    109        
     109
    110110        _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    111        
     111
    112112        .bss : {
    113113                *(.dynbss);
     
    115115                *(.bss);
    116116        } :data
    117        
     117
    118118#ifdef CONFIG_LINE_DEBUG
    119119        .comment 0 : { *(.comment); } :debug
     
    128128        .debug_str 0 : { *(.debug_str); } :debug
    129129#endif
    130        
     130
    131131        /DISCARD/ : {
    132132                *(*);
  • uspace/lib/c/arch/ia64/_link.ld.in

    ra35b458 rf1380b7  
    1818        . = 0x4000 + SIZEOF_HEADERS;
    1919#endif
    20        
     20
    2121        /* Workaround proper alignment of the .init section */
    2222        . = ALIGN(., 16);
    23        
     23
    2424        .init : {
    2525                *(.init);
    2626        } :text
    27        
     27
    2828        .text : {
    2929                *(.text .text.*);
    3030                *(.rodata .rodata.*);
    3131        } :text
    32        
     32
    3333#ifdef LOADER
    3434        .interp : {
     
    3636        } :interp :text
    3737#endif
    38        
     38
    3939        . = . + 0x4000;
    40        
     40
    4141        .got : {
    4242                /* Tell the linker where we expect GP to point. */
     
    4444                *(.got .got.*);
    4545        } :data
    46        
     46
    4747        .data : {
    4848                *(.opd);
     
    5050                *(.sdata);
    5151        } :data
    52        
     52
    5353        .tdata : {
    5454                _tdata_start = .;
     
    5959                _tbss_end = .;
    6060        } :data
    61        
     61
    6262        _tls_alignment = ALIGNOF(.tdata);
    63        
     63
    6464        .bss : {
    6565                *(.sbss);
     
    6868                *(.bss);
    6969        } :data
    70        
     70
    7171        /DISCARD/ : {
    7272                *(*);
  • uspace/lib/c/arch/mips32/_link.ld.in

    ra35b458 rf1380b7  
    1818        . = 0x4000 + SIZEOF_HEADERS;
    1919#endif
    20        
     20
    2121        .init : {
    2222                *(.init);
    2323        } :text
    24        
     24
    2525        .text : {
    2626                *(.text .text.*);
    2727                *(.rodata .rodata.*);
    2828        } :text
    29        
     29
    3030#ifdef LOADER
    3131        .interp : {
     
    3333        } :interp :text
    3434#endif
    35        
     35
    3636        . = . + 0x4000;
    37        
     37
    3838        .data : {
    3939                *(.data);
    4040                *(.data.rel*);
    4141        } :data
    42        
     42
    4343        .got : {
    4444                _gp = .;
    4545                *(.got);
    4646        } :data
    47        
     47
    4848        .tdata : {
    4949                _tdata_start = .;
     
    5151                _tdata_end = .;
    5252        } :data
    53        
     53
    5454        .tbss : {
    5555                _tbss_start = .;
     
    5757                _tbss_end = .;
    5858        } :data
    59        
     59
    6060        _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
    61        
     61
    6262        .sbss : {
    6363                *(.scommon);
    6464                *(.sbss);
    6565        }
    66        
     66
    6767        .bss : {
    6868                *(.bss);
    6969                *(COMMON);
    7070        } :data
    71        
     71
    7272        /DISCARD/ : {
    7373                *(*);
  • uspace/lib/c/arch/ppc32/_link.ld.in

    ra35b458 rf1380b7  
    1919        . = 0x1000 + SIZEOF_HEADERS;
    2020#endif
    21        
     21
    2222        .init : {
    2323                *(.init);
    2424        } :text
    25        
     25
    2626        .text : {
    2727                *(.text .text.*);
    2828                *(.rodata .rodata.*);
    2929        } :text
    30        
     30
    3131#ifdef LOADER
    3232        .interp : {
     
    3434        } :interp :text
    3535#endif
    36        
     36
    3737        . = . + 0x1000;
    38        
     38
    3939        .data : {
    4040                *(.data);
    4141                *(.sdata);
    4242        } :data
    43        
     43
    4444        .tdata : {
    4545                _tdata_start = .;
     
    5050                _tbss_end = .;
    5151        } :data
    52        
     52
    5353        _tls_alignment = ALIGNOF(.tdata);
    54        
     54
    5555        .bss : {
    5656                *(.sbss);
     
    5858                *(.bss);
    5959        } :data
    60        
     60
    6161#ifdef CONFIG_LINE_DEBUG
    6262        .comment 0 : { *(.comment); } :debug
     
    7171        .debug_str 0 : { *(.debug_str); } :debug
    7272#endif
    73        
     73
    7474        /DISCARD/ : {
    7575                *(*);
  • uspace/lib/c/arch/riscv64/_link.ld.in

    ra35b458 rf1380b7  
    1919        . = 0x1000 + SIZEOF_HEADERS;
    2020#endif
    21        
     21
    2222        .text : {
    2323                *(.text .text.*);
     
    2525                *(.srodata .srodata.*);
    2626        } :text
    27        
     27
    2828#ifdef LOADER
    2929        .interp : {
     
    3131        } :interp :text
    3232#endif
    33        
     33
    3434        . = . + 0x1000;
    35        
     35
    3636        .data : {
    3737                *(.data);
     
    3939                *(.data.rel*);
    4040        } :data
    41        
     41
    4242        .tdata : {
    4343                _tdata_start = .;
     
    4949                _tbss_end = .;
    5050        } :data
    51        
     51
    5252        _tls_alignment = ALIGNOF(.tdata);
    53        
     53
    5454        .sbss : {
    5555                *(.scommon);
    5656                *(.sbss);
    5757        }
    58        
     58
    5959        .bss : {
    6060                *(COMMON);
    6161                *(.bss);
    6262        } :data
    63        
     63
    6464#ifdef CONFIG_LINE_DEBUG
    6565        .comment 0 : { *(.comment); } :debug
     
    7474        .debug_str 0 : { *(.debug_str); } :debug
    7575#endif
    76        
     76
    7777        /DISCARD/ : {
    7878                *(*);
  • uspace/lib/c/arch/sparc64/_link.ld.in

    ra35b458 rf1380b7  
    1919        . = 0x4000 + SIZEOF_HEADERS;
    2020#endif
    21        
     21
    2222        .init : {
    2323                *(.init);
    2424        } :text
    25        
     25
    2626        .text : {
    2727                *(.text .text.*);
    2828                *(.rodata .rodata.*);
    2929        } :text
    30        
     30
    3131#ifdef LOADER
    3232        .interp : {
     
    3434        } :interp :text
    3535#endif
    36        
     36
    3737        . = . + 0x4000;
    38        
     38
    3939        .got : {
    4040                 _gp = .;
    4141                 *(.got*);
    4242        } :data
    43        
     43
    4444        .data : {
    4545                *(.data);
    4646                *(.sdata);
    4747        } :data
    48        
     48
    4949        .tdata : {
    5050                _tdata_start = .;
     
    5555                _tbss_end = .;
    5656        } :data
    57        
     57
    5858        _tls_alignment = ALIGNOF(.tdata);
    59        
     59
    6060        .bss : {
    6161                *(.sbss);
     
    6363                *(.bss);
    6464        } :data
    65        
     65
    6666#ifdef CONFIG_LINE_DEBUG
    6767        .comment 0 : { *(.comment); } :debug
     
    7676        .debug_str 0 : { *(.debug_str); } :debug
    7777#endif
    78        
     78
    7979        /DISCARD/ : {
    8080                *(*);
  • uspace/lib/pcut/README.rst

    ra35b458 rf1380b7  
    3333        #include <pcut/pcut.h>
    3434        #include <stdlib.h>
    35        
     35
    3636        PCUT_INIT
    37        
     37
    3838        PCUT_TEST(atoi_zero) {
    3939            PCUT_ASSERT_INT_EQUALS(0, atoi("0"));
    4040        }
    41        
     41
    4242        PCUT_TEST(atoi_positive) {
    4343            PCUT_ASSERT_INT_EQUALS(42, atoi("42"));
    4444        }
    45        
     45
    4646        PCUT_TEST(atoi_negative) {
    4747            PCUT_ASSERT_INT_EQUALS(-273, atoi("-273"));
    4848        }
    49        
     49
    5050        PCUT_MAIN()
    5151
  • uspace/lib/posix/Makefile

    ra35b458 rf1380b7  
    165165        mkdir -p $(EXPORT_DIR)/include.new/libclui
    166166        cp -L ../clui/tinput.h $(EXPORT_DIR)/include.new/libclui
    167        
     167
    168168        find "$(EXPORT_DIR)/include.new/libc" "$(EXPORT_DIR)/include.new/libclui" -name '*.h' -exec sed \
    169169                -e 's:#include <:#include <libc/:' \
     
    176176                -e 's:#include <posix/:#include <:' \
    177177                -i {} \;
    178        
     178
    179179        rm -rf $(EXPORT_DIR)/include
    180180        mv $(EXPORT_DIR)/include.new $(EXPORT_DIR)/include
Note: See TracChangeset for help on using the changeset viewer.