Programming :: Initializing The SS Register (Intel Architecture)?
Jul 9, 2011
Kernel 2.6.21.5, slackware 12.0 as 2.17 [I am speaking here about 80x86 processors, with their segment registers SS, DS, CS, ES.] In a source file for as, I wrote
Code:
.section _STACK
.rept 4096
.word 0
.endr
Now, in the .text section, I want to initialize SS, the stack segment, to point to the _STACK section. In other assemblers, there was a special section for the stack, and the linker cared about initializing SS. Here I use a common section for the stack. For a segment such as DS, I could write
mov ax,_DATA
mov ds,ax
But I don't think mov ax,_STACK would do with as/ls.how do I initialize SS?
View 4 Replies
ADVERTISEMENT
Mar 28, 2010
Which architecture to use with an Intel Core 2 Duo processor?
View 3 Replies
View Related
Feb 22, 2010
I've just finished installing debian 5.0.3 on my pc and i chose the installation set for the Intel x86 architecture. Does it mean that my OS is then 32 bit and will be used to run only 32 bits applications ? I'm doing also software developments with gcc with my linux box. Using this os and the gcc tools, for this os, will my software only be 32 bits ?
View 1 Replies
View Related
Mar 8, 2010
I'm a Linux Mint user, but I'd like to cross over to Debian. I used the x86 architecture for the Mint install, but I couldn't find that anywhere on the Debian site. what the architecture for the Intel Pentium D dual core is?
View 2 Replies
View Related
Nov 20, 2009
I have a struct (small instance so not using code brackets )
struct random {
int a;
int b;
}example;
What i am trying is
example={0,0};
and it gives an error how to initialize all the entries within a struct to zero? In the above example i have used integers but what if they are some other data structure for example another structure?
View 2 Replies
View Related
Nov 5, 2010
Following is the way I saw a variable initialized in C
Code:
static const unsigned int rtl8139_rx_config =
RxCfgRcv64K |
(RX_FIFO_THRESH << RxCfgFIFOShift) |
(RX_DMA_BURST << RxCfgDMAShift);
on following link
[URL]
I have initialized variables in past but above initialization I could not understand what is it?
View 4 Replies
View Related
Nov 4, 2010
I am using semaphore.h I declared a variable of type sem_t. I am able to use the variable without even calling sem_init or sem_open, and it is working properly.if the variable is automatically assigned some value? Also would I run into any trouble doing so?
View 1 Replies
View Related
Mar 12, 2009
I'm making script for automated compiling of one program which would output builds optimized for many architectures. For clearancy, I do each build in it's own catalogue and list of builds with their respective catalogues would be stored as array. I'm using this guide as reference. It describes making array as naming a variable with additional brackets denoting it's position in array.
In my code, it looks exactly like this:
Code:
mtune[1]="build/mtune/athlon"
mtune[2]="build/mtune/athlon-4"
mtune[3]="build/mtune/athlon-mp"
[code]....
But upon invoking $mtune or any $mtune[x] variable, output is blank, like the variable(s) were never initialized. What am I doing wrong?
View 1 Replies
View Related
Oct 12, 2010
I am having a problem initializing the Pmw megawidgets for Python 2.6.I have Pmw_1_3 loaded in the site-packages directory.
View 1 Replies
View Related
Oct 13, 2010
I am having the following error while executing script and initialing my application
./ss.sh: line 1: kk.sh: command not found
./ss.sh: line 2: mon.exe: command not found
Can somebody assist ASAP.
View 4 Replies
View Related
Jun 7, 2011
The code below defines an array of structures in a class. I would like this to be a Static array and then initialize the array in a initialization method. I understand that initialization lists are the way to go but due to the size and complexity of the array I plan on using (the example below is a simple snippet that illustrates the problem) I would like to use the initialization method. However, I cant even get this thing to compile. The error says the reference to the ArrayOfStructs in the initialization routine is undefined.
l_long_Island
P.S. This is the error message
undefined reference to `ClassWithStaticArray::ArrayOfStruts'
class ClassWithStaticArray {
public:
struct IntegerStruct
{
[code]....
View 5 Replies
View Related
Nov 25, 2010
I made 2 files which are different from the program above one is temp1.h and another is temp2.c to understand how extern is used. So here is temp1.h
Code:
#include<stdlib.h>
typedef struct node * bond;
extern int jk;
and temp2.c is
Code:
#include<stdio.h>
#include<temp1.h>
struct node {
int data;
[code]...
I had declared jk in temp1.h as an extern int so why can I not initialize it in temp2.c?
View 5 Replies
View Related
Dec 18, 2010
I could't find the 64bit Debian Lenny OS for Intel architecture.Hence I have installed amd64 and it is working fine.Does both intel and amd have the same 64 bit OS amd64 ?
View 3 Replies
View Related
Mar 15, 2011
An error occur when I compile my inline assemble code with a alpha/linux cross compiler.code:
Code:
#define CPU_ID(cpu_iid)
__asm__ __volatile__ (
[code]....
View 2 Replies
View Related
Oct 14, 2010
While initializing my application the following errors is returned:
Bash profile for the user is as follows:
View 1 Replies
View Related
Mar 25, 2010
initializing a branch in one Launchpad project on multiple computers, or even upon reinstalling an OS? I know I sure haven't.
View 1 Replies
View Related
Nov 21, 2010
I am trying to understand working of pci_resource_start function So I browsed code via cscope and searched for string pci_resource_start and got following in pci.h
Code:
#define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start)
I am not able to understand how does this above macro works. How does it above macro gets appropriate base address register in configuration space?
View 1 Replies
View Related
May 1, 2011
Where can I the information about the NUMA architecture supports in Linux
View 3 Replies
View Related
Aug 21, 2010
I was following a simple tutorial on how to program and compile a hello world program using assembly when I got this error;Quote:ld: i386 architecture of input file `hello.o' is incompatible with i386:x86-64 output.The tutorial told me to make two files;Quote:hello.asmsection .data;section declaration
msg db "Hello, world!",0xa;our dear string
len equ $ - msg ;length of our dear string
section .text;section declaration
[code]....
View 3 Replies
View Related
May 29, 2010
I want to git-bisect drm-intel between linux versions 2.6.32.3 and 2.6.33.1. I have git-cloned this:
Code:
git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel
as given here and when i say
[code]....
View 1 Replies
View Related
Feb 12, 2011
Embedded ystem specs: see below.
Also:
Problem: no /dev/i2c-0 present
Question: how to use user space i2c/SMBus when I cannot open + utilize devices on the smbus?
For example: smbus_fd = oepn("/dev/i2c-o", O_RDWR) cannot be done since '/dev/i2c-o' does not exists nor is it attached to the i2c-bus (see tree below).
View 1 Replies
View Related
Jan 24, 2010
Does anyone know what the Inet/AMD instruction 'nopl' is or does anyone know where I can find a list of hex values for the Intel/AMD instructions. nothing important is waiting on this reply.
[Code]...
View 3 Replies
View Related
Feb 9, 2010
I have downloaded mplayer svn slackbuild script for slackware 12.2 and converted into tgz package and installed it on my slackware 12.2 system. I was using it with slackware 12.2 early and it worked fine. i formated my hard disk to give slackware 13 a try. and later when i installed slackware 12.2 and installed mplayer it is not opening i mean not initializing when i click mplayer icon from the multemedia menu or if i click a videofile and tell it to open with mplayer both ways its not working i tried reinstalling mplayer
but still not working.
View 3 Replies
View Related
Mar 24, 2010
I've read there is a way to communicate without tradtional TCP/IP programming on Redhat Linux and Nehalem CPU with ethernet. I've tried to collect some related information with sample program codes, but failed to collect useful information.
View 1 Replies
View Related
Oct 11, 2010
I am running some muti-threaded code that uses a lot of memory (~6GB). I have it compiled on a cluster that uses Xeon 5160 quad core CPUs with 4MB cache/core, 8GB of RAM and kernel 2.6.18 (x86_64) and I have also the same code compiled on another cluster that uses Opteron 2214 quad core CPUs with 1MB cache/core, 8GB of RAM and kernel 2.6.28 (x86_64). On the Intel cluster the code generates barely any system load when I look on top but on the AMD cluster it can generate over 50% of system load. On the intel machines my process can generate a constant load of 3, while the load generated by the process on the AMD machines is about 1.6.
Does anybody know what could cause this? Could it be the version of the kernel or the difference between the CPUs (for example, the much smaller cache of the AMD CPUS)? My software and all its dependencies are the same on both clusters. I am also using the exact same version of GCC to compile everything.
View 1 Replies
View Related
Jan 20, 2010
I need some help. I'm not exactly new to linux but I'm not an expert either. I decided to try and play around with GRUB and see if I could get the GRUB gui and themes working. Apparently I did something and now, when I start up my computer, all I get is code...
I know little to nothing about grub. I will welcome any and all help or advice with this. Let me know if you need any other information and I will try to post it. Also, I have no idea whether I am running legacy or 2. It originally told me I was running legacy and I attempted to upgrade to 2 but I have no idea if it actually upgraded.
View 4 Replies
View Related
Feb 10, 2010
I am having a very serious problem! GRUB won't allow me to start up windows 7. Each time I select it from the prompt, I am given a blank screen with only the cursor blinking and mocking me. Ubuntu works perfectly fine, but when I try to mount the windows 7 volume, it tells me that it is unable to mount the location because of an input/output error. I havnt done anything to make me believe I have caused this abd I am in complete shock that this has even happened. Both operating systems were running completely fine and then suddenly, windows won't boot up.
View 2 Replies
View Related
Jul 9, 2010
I changed the complier PGI to Intel. But i had some error message p4_error: interrupt SIGSEGV: 11 This error message was occured using intel compiler I don't know what is the ploblem.
View 2 Replies
View Related
Apr 17, 2011
kubuntu 10.10: system settings > workspace appearance > window decorations > get new decorations then the 'add-on installer' pops up and starts 'initializing' and then sais: 'Network error (1)' but I have a good working connection
View 2 Replies
View Related
Jan 10, 2009
I just tried booting SUSE 11.0, but the system stops at the point it shows "initializing random number generator". I have left the system running at that point for almost 2 hrs, with no way to get past that. System isn't locked up. It has never done this before. How do I fix this?I have also tried failsafe booting, but it stops at the same spot also.
View 3 Replies
View Related