forked from KolibriOS/kolibrios
ddk: update to 3.12-rc6, part 2
git-svn-id: svn://kolibrios.org@4110 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0ea10be928
commit
6e63c7609b
@ -13,6 +13,7 @@
|
||||
.global _CreateEvent
|
||||
.global _CreateObject
|
||||
.global _CreateRingBuffer
|
||||
.global _CreateThread
|
||||
|
||||
.global _Delay
|
||||
.global _DestroyEvent
|
||||
@ -81,6 +82,7 @@
|
||||
.def _CreateEvent; .scl 2; .type 32; .endef
|
||||
.def _CreateObject; .scl 2; .type 32; .endef
|
||||
.def _CreateRingBuffer; .scl 2; .type 32; .endef
|
||||
.def _CreateThread; .scl 2; .type 32; .endef
|
||||
|
||||
.def _Delay; .scl 2; .type 32; .endef
|
||||
.def _DestroyEvent; .scl 2; .type 32; .endef
|
||||
@ -149,6 +151,7 @@ _AttachIntHandler:
|
||||
_CreateEvent:
|
||||
_CreateObject:
|
||||
_CreateRingBuffer:
|
||||
_CreateThread:
|
||||
|
||||
_Delay:
|
||||
|
||||
@ -219,8 +222,8 @@ _WaitEventTimeout:
|
||||
|
||||
.ascii " -export:CreateEvent" #
|
||||
.ascii " -export:CreateObject" #
|
||||
|
||||
.ascii " -export:CreateRingBuffer" # stdcall
|
||||
.ascii " -export:CreateThread" #
|
||||
|
||||
.ascii " -export:Delay" # stdcall
|
||||
|
||||
|
@ -36,7 +36,10 @@
|
||||
/*
|
||||
* Generic range manager structs
|
||||
*/
|
||||
#include <linux/bug.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/spinlock.h>
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
#include <linux/seq_file.h>
|
||||
#endif
|
||||
|
@ -32,12 +32,12 @@
|
||||
#define _TTM_BO_API_H_
|
||||
|
||||
#include <drm/drm_hashtab.h>
|
||||
#include <drm/drm_vma_manager.h>
|
||||
#include <linux/kref.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/bitmap.h>
|
||||
|
||||
struct ttm_bo_device;
|
||||
@ -195,7 +195,6 @@ struct ttm_buffer_object {
|
||||
enum ttm_bo_type type;
|
||||
void (*destroy) (struct ttm_buffer_object *);
|
||||
unsigned long num_pages;
|
||||
uint64_t addr_space_offset;
|
||||
size_t acc_size;
|
||||
|
||||
/**
|
||||
@ -239,13 +238,7 @@ struct ttm_buffer_object {
|
||||
void *sync_obj;
|
||||
unsigned long priv_flags;
|
||||
|
||||
/**
|
||||
* Members protected by the bdev::vm_lock
|
||||
*/
|
||||
|
||||
// struct rb_node vm_rb;
|
||||
struct drm_mm_node *vm_node;
|
||||
|
||||
struct drm_vma_offset_node vma_node;
|
||||
|
||||
/**
|
||||
* Special members that are protected by the reserve lock
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <ttm/ttm_placement.h>
|
||||
#include <drm/drm_mm.h>
|
||||
#include <drm/drm_global.h>
|
||||
#include <drm/drm_vma_manager.h>
|
||||
//#include <linux/workqueue.h>
|
||||
//#include <linux/fs.h>
|
||||
#include <linux/spinlock.h>
|
||||
@ -538,14 +539,13 @@ struct ttm_bo_device {
|
||||
struct list_head device_list;
|
||||
struct ttm_bo_global *glob;
|
||||
struct ttm_bo_driver *driver;
|
||||
rwlock_t vm_lock;
|
||||
struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES];
|
||||
spinlock_t fence_lock;
|
||||
|
||||
/*
|
||||
* Protected by the vm lock.
|
||||
* Protected by internal locks.
|
||||
*/
|
||||
struct rb_root addr_space_rb;
|
||||
struct drm_mm addr_space_mm;
|
||||
struct drm_vma_offset_manager vma_manager;
|
||||
|
||||
/*
|
||||
* Protected by the global:lru lock.
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
#include <linux/errno.h>
|
||||
#include <linux/typecheck.h>
|
||||
|
||||
#define __init
|
||||
|
@ -143,6 +143,19 @@ int dbgprintf(const char* format, ...);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static inline int CreateKernelThread(void *entry)
|
||||
{
|
||||
int pid;
|
||||
__asm__ __volatile__ (
|
||||
"call *__imp__CreateThread"
|
||||
:"=a"(pid)
|
||||
:"b"(1),"c"(entry),"d"(0)
|
||||
:"memory");
|
||||
__asm__ __volatile__ ("":::"ebx","ecx","edx","esi","edi");
|
||||
return pid;
|
||||
};
|
||||
|
||||
|
||||
static inline evhandle_t CreateEvent(kevent_t *ev, u32_t flags)
|
||||
{
|
||||
evhandle_t evh;
|
||||
|
Loading…
Reference in New Issue
Block a user