Changeset 2b50d7c in mainline for include


Ignore:
Timestamp:
2005-05-28T20:13:25Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
747a2476
Parents:
87cb9e2
Message:

IA-64 work.
Redefine FRAME_SIZE to "(16*1024)" instead of "2*4096". Note that the latter definition was wrong because of the lack of "()".
Take panic_printf(), cpu_halt() and memsetb() out of fake.s and implement them properly in asm.S.
Move ski_init_console() from arch_post_mm_init() to arch_pre_mm_init().
In start.S, write r0 to ar.bspstore.

Janitorial fixes.
Add count_t type.
Replace several occurrences of int and u32 by count_t or size_t.
Shorten several panic strings.

Location:
include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • include/config.h

    r87cb9e2 r2b50d7c  
    3939struct config {
    4040        __address base;
    41         __u32 memory_size;
    42         __u32 kernel_size;
     41        size_t memory_size;
     42        size_t kernel_size;
    4343
    44         int cpu_count;
    45         volatile int cpu_active;
     44        count_t cpu_count;
     45        volatile count_t cpu_active;
    4646};
    4747
  • include/mm/frame.h

    r87cb9e2 r2b50d7c  
    3131
    3232#include <arch/types.h>
     33#include <typedefs.h>
    3334
    3435#define FRAME_KA        1       /* skip frames conflicting with user address space */
    3536#define FRAME_PANIC     2       /* panic on failure */
    3637
    37 extern __u32 frames;
    38 extern __u32 frames_free;
     38extern count_t frames;
     39extern count_t frames_free;
    3940
    40 extern __u32 kernel_frames;
    41 extern __u32 kernel_frames_free;
     41extern count_t kernel_frames;
     42extern count_t kernel_frames_free;
    4243
    4344extern __u8 *frame_bitmap;
    44 extern __u32 frame_bitmap_octets;
     45extern count_t frame_bitmap_octets;
    4546
    4647extern __u8 *frame_kernel_bitmap;
  • include/mm/heap.h

    r87cb9e2 r2b50d7c  
    4141};
    4242
    43 extern void heap_init(__address heap, __u32 size);
     43extern void heap_init(__address heap, size_t size);
    4444
    4545extern void *malloc(size_t size);
  • include/typedefs.h

    r87cb9e2 r2b50d7c  
    3636
    3737typedef unsigned int size_t;
     38typedef unsigned int count_t;
    3839
    3940typedef struct config config_t;
Note: See TracChangeset for help on using the changeset viewer.