search for: thekernel

Displaying 9 results from an estimated 9 matches for "thekernel".

2004 Apr 02
2
[LLVMdev] Function pointers
OK, I solved it all ( so far :) ), mixing in some load-instructions and called on the result of that, which worked. Here is the skeleton-code: %kernel = type { int ()* } int puts_kernel(){...} ; main() %theKernel = malloc %kernel %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 store int ()* %puts_kernel, int ()** %puts_kernelPTR %tmp.11 = load int ()** %puts_kernelPTR %tmp.2 = call int %tmp.11() free %kernel* %theKernel :-) Anders -----Original Message-----...
2004 Apr 02
0
[LLVMdev] Function pointers
...2004, Anders Alexandersson wrote: > OK, I solved it all ( so far :) ), mixing in some load-instructions and > called on the result of that, which worked. > > Here is the skeleton-code: > > %kernel = type { int ()* } > > int puts_kernel(){...} > > ; main() > > %theKernel = malloc %kernel > %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 > > store int ()* %puts_kernel, int ()** %puts_kernelPTR > %tmp.11 = load int ()** %puts_kernelPTR > > %tmp.2 = call int %tmp.11() > > free %kernel* %theKernel Yup, that's close. Yo...
2004 Apr 02
0
[LLVMdev] Function pointers
So, here comes the next question:) Now the program compiles, but crashes when run, "Segmentation fault". %kernel = type { int ()* } int %puts_kernel() { ret int 0 } int %main() { %theKernel = alloca %kernel %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 store int ()* %puts_kernel, int ()** %puts_kernelPTR ret int 0 } I want to learn how to achieve the mechanisms in this C code: #include <stdio.h> int DoIt(void); int DoIt(void){ return 0; }...
2004 Apr 02
0
[LLVMdev] Function pointers
...s.uiuc.edu Date: Fri, 02 Apr 2004 10:07:50 +0200 Subject: Re: Re: [LLVMdev] Function pointers So, here comes the next question:) Now the program compiles, but crashes when run, "Segmentation fault". %kernel = type { int ()* } int %puts_kernel() { ret int 0 } int %main() { %theKernel = alloca %kernel %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 store int ()* %puts_kernel, int ()** %puts_kernelPTR ret int 0 } I want to learn how to achieve the mechanisms in this C code: #include <stdio.h> int DoIt(void); int DoIt(void){ return 0; }...
2004 May 11
1
[LLVMdev] Follow-up on: Dynamic updates of current executed code
...w: %---------- %dynamically_compiled_function_code = internal constant [LENGTH x sbyte] c"--String with the function code--\0A\00" ; Table of function pointer(s) %kernel = type { int ( sbyte* )* } int %main() { ; Create the kernel in memory, and get pointer to first function pointer %theKernel = malloc %kernel %FirstFunctionPTR = getelementptr %kernel* %theKernel, long 0, ubyte 0 ;Load code %myNewFunction = %getPointerToGlobal(%dynamically_compiled_function_code) ; Write memory address of myNewFunction() into kernel struct store RETURNTYPE (PARAMTYPE*)* %myNewFunction, RETURNTYPE (PARAM...
2004 Apr 20
2
[LLVMdev] Dynamic updates of current executed code
...amically_compiled_function_code = internal constant [LENGTH x sbyte] c"--String with the function code--\0A\00" ; Table of function pointer(s) %kernel = type { int ( sbyte* )* } int %main() { ; Create the kernel in memory, and get pointer to first function pointer %theKernel = malloc %kernel %FirstFunctionPTR = getelementptr %kernel* %theKernel, long 0, ubyte 0 ;Load code %myNewFunction = %getPointerToGlobal(%dynamically_compiled_function_code) ; Write memory address of myNewFunction() into kernel struct store RETURNTYPE (PARAMT...
1999 Mar 22
86
SWAT
I was playing with this on my test machine, (redhat 5.2, samba 2.0.3) worked great, and I was really impressed. So I decided to install this on my office machine. (redhat 4.2, samba 2.0.3) and the only significant difference is that on the office machine, I use encrypted passwords. I cannot get swat to authenticate on the second machine. That is, no matter what account, password combination
2011 May 02
5
Is there a difference ...?
...patibility ever since. >>> So Alsa is probably not Canonical's main center of interest. >> erm.... Alsa is always going to be of main concern of ANY distribution >> of Linux. PA doesn't replace ALSA, it just runs on top of it. >> ALSA talks directly to hardware(@ thekernel level)... Applications >> talk to PA(if using pulseaudio), then PA talks to ALSA. PA is just a >> sound server, and resides in user-space. PA, Jack, etc aren't >> replacements for ALSA - they work with ALSA. > Wine does not directly support PA nor should it. Adding a compa...
2004 Apr 23
3
zaptel on Fedora (Core 1) RedHat Linux-2.4
Hi! I have fresh installation of Fedora (Core 1) RedHat Linux-2.4.22-1.2115.nptl The kernel source is in place /usr/src/linux-2.4.22-1.2115.nptl The config file for the kernel is in place /boot/config-2.4.22-1.2115.nptl As per zaptel instruction, i first created the kernel config file as follows: # cd /usr/src/linux-2.4.22-1.2115.nptl; make menuconfig (in the menu config window) I loaded the